Bug: Coroutine Error: 'Spell Button 02' Inactive When Starting Spell
113 °C
Bug #2

Coroutine Error: 'Spell Button 02' Inactive When Starting Spell

Status: New
Priority:
High
Added by:
derben.com
on October 24, '25
Assigned to:
Unassigned
Due date:
Reported for:
V0.681 Auto

Steps to Reproduce

No steps to reproduce

Explanation

SpellButtonScript is experiencing an issue where a coroutine cannot be started because the game object 'Spell Button 02' is inactive. This occurs when attempting to lower land, resulting in the error: 'Coroutine couldn't be started because the the game object 'Spell Button 02' is inactive!'. The stack trace indicates the error originates from UnityEngine.MonoBehaviour:StartCoroutineManaged2 (System.Collections.IEnumerator) and propagates through various methods including SpellButtonScript:TriggerCooldownEffect (), SpellButtonScript:StartCooldownDisplay (single), and UIBuildingSpellController:UpdateSpellButtonsDirectly (System.Collections.Generic.List1&lt;SpellClass&gt;,Tile,System.Collections.Generic.List1<SpellButtonScript>,SpellManager).

This issue was created from the following Discord message:
Bug report:
game spits out this error whenever I try to lower land (theres two of them, on for spell button 01 and one for 02

Coroutine couldn't be started because the the game object 'Spell Button 02' is inactive!
UnityEngine.Debug:ExtractStackTraceNoAlloc (byte*,int,string)
UnityEngine.StackTraceUtility:ExtractStackTrace ()
UnityEngine.MonoBehaviour:StartCoroutineManaged2 (System.Collections.IEnumerator)
UnityEngine.MonoBehaviour:StartCoroutine (System.Collections.IEnumerator)
SpellButtonScript:TriggerCooldownEffect ()
SpellButtonScript:StartCooldownDisplay (single)
SpellButtonScript:UpdateCooldownState ()
SpellButtonScript:SetButton (UnityEngine.Sprite,string,int,int,int,int,bool,bool)
UIBuildingSpellController:UpdateSpellButtonsDirectly (System.Collections.Generic.List`1,Tile,System.Collections.Generic.List`1,SpellManager)
UIBuildingSpellController:SetAvailableSpellButtons (System.Collections.Generic.List`1,Tile,System.Collections.Generic.List`1,SpellManager,UnityEngine.GameObject)
UIBuildingSpellController:UpdateBuildContextInternal (Tile,GameManager,BuildingManager,SpellManager,System.Collections.Generic.List`1,System.Collections.Generic.List`1,UnityEngine.GameObject)
UIManager:UpdateBuildContext (Tile)
BuildingManager:UpdateBuildContext (Tile)
Tile:OnTileClicked ()
GameManager:HandleTileClick ()
GameManager:Update ()
Link

Watchers

Linked Bugs (1)
Bug Occurrence
Last 24 hours0
Last 30 days0
100%
100% (1)
Screenshots

None

Video Clips

None

Log Files

None

Device

No device information

No comments yet.

You need to join this project to comment on issues. Join Project