Closed pandaro closed 8 years ago
in fact: sometime a nano clean something, after this he stuck itself, if another unit clean something else, the first unit will be unstuck
i think it has to do with assistbehaviour failing to re-activate for some reason. assistbehaviour is what gives the nanoturret the patrol order that keeps it doing things
i know assistbehavoiur...
and assistbehaviour isn't reactivating because cleanerbehaviour isn't deactivating. possibly because the cleanable unit is never removed from the table of cleanables? am attempting to debug this. https://github.com/eronoobos/BABAR-The-Shardifant/issues/9 makes me distrust that behaviours are even doing what i expect them to be doing
just a note to myself, cleanerbehaviour and cleanhandler use UnitDestroyed
callins, which do nothing. it should be UnitDead
. but what's inside the callin causes errors, need to fix it
im online if you need, in #badev channel
use UnitDestroyed callins why you should use this? instead unit dead?
other way around, currently they use UnitDestroyed
, but should use UnitDead
.
UnitDead
is the callin for Shard modules & behaviours
UnitDestroyed
is the callin for Spring gadgets & widgets (which is why I got confused)
https://github.com/eronoobos/BABAR-The-Shardifant/commit/6c600162002d29df1cd60c6b1559ca0fa78b13d0 fixes it, but i'll test it to make sure
sometime the nano stop to work after clean stuff