From 60b89174c6b6300079344267bae60d74347e1fa5 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Wed, 11 Jun 2025 03:30:51 -0300 Subject: some announce functions --- src/magic.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/magic.cc') diff --git a/src/magic.cc b/src/magic.cc index 728b681..6cff8bc 100644 --- a/src/magic.cc +++ b/src/magic.cc @@ -1,6 +1,7 @@ #include "magic.hh" #include "config.hh" #include "info.hh" +#include "operate.hh" #include "stubs.hh" @@ -1503,7 +1504,7 @@ void Teleport(TCreature *Actor, const char *Param){ GraphicalEffect(DestX, DestY, DestZ, EFFECT_ENERGY); }else if(MDGoStrength != Actor->Skills[SKILL_GO_STRENGTH]->MDAct){ Actor->Skills[SKILL_GO_STRENGTH]->SetMDAct(MDGoStrength); - AnnounceChangedCreature(Actor->ID, 4); // CREATURE_GO_STRENGTH_CHANGED ? + AnnounceChangedCreature(Actor->ID, CREATURE_SPEED_CHANGED); GraphicalEffect(DestX, DestY, DestZ, EFFECT_MAGIC_BLUE); } } @@ -2399,7 +2400,7 @@ void CancelInvisibility(TCreature *Actor, Object Target, int ManaPoints, int Sou Victim->SetTimer(SKILL_ILLUSION, 0, 0, 0, -1); if(Victim->Skills[SKILL_ILLUSION]->Get() == 0){ Victim->Outfit = Victim->OrgOutfit; - AnnounceChangedCreature(Victim->ID, 3); // CREATURE_OUTFIT_CHANGED ? + AnnounceChangedCreature(Victim->ID, CREATURE_OUTFIT_CHANGED); NotifyAllCreatures(Victim->CrObject, 2, NONE); // CREATURE_APPEAR ? }else{ Effect = EFFECT_BLOCK_HIT; -- cgit v1.2.3