From 15b40c7915fca14e537534ae9ba03f3add965943 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Fri, 13 Jun 2025 03:35:56 -0300 Subject: more work on `operate.cc` --- src/crmain.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/crmain.cc') diff --git a/src/crmain.cc b/src/crmain.cc index 52a7c13..7e0ab42 100644 --- a/src/crmain.cc +++ b/src/crmain.cc @@ -592,7 +592,7 @@ int TCreature::Damage(TCreature *Attacker, int Damage, int DamageType){ this->SetTimer(SKILL_ILLUSION, 0, 0, 0, -1); this->Outfit = this->OrgOutfit; AnnounceChangedCreature(this->ID, CREATURE_OUTFIT_CHANGED); - NotifyAllCreatures(this->CrObject, 2, NONE); // CREATURE_APPEAR ? + NotifyAllCreatures(this->CrObject, OBJECT_CHANGED, NONE); } if(DamageType == DAMAGE_MANADRAIN){ @@ -890,8 +890,7 @@ void TCreature::CreatureMoveStimulus(uint32 CreatureID, int Type){ return; } - // TODO(fusion): Find out what `Type` is here. - if(Type != 2 // STIMULUS_TYPE_?? + if(Type != OBJECT_CHANGED || !this->LockToDo || this->ActToDo >= this->NrToDo || this->ToDoList.at(this->ActToDo)->Code != TDAttack){ -- cgit v1.2.3