aboutsummaryrefslogtreecommitdiff
path: root/src/magic.cc
diff options
context:
space:
mode:
authorfusion32 <marcopuzziello@gmail.com>2025-06-11 03:30:51 -0300
committerfusion32 <marcopuzziello@gmail.com>2025-06-11 03:30:51 -0300
commit60b89174c6b6300079344267bae60d74347e1fa5 (patch)
tree71f97db0af2d5b64e34fcaee72f95ceccb6f433e /src/magic.cc
parentb167d45f88cfb824a96c3a5a120c34c30768ecda (diff)
downloadgame-60b89174c6b6300079344267bae60d74347e1fa5.tar.gz
game-60b89174c6b6300079344267bae60d74347e1fa5.zip
some announce functions
Diffstat (limited to 'src/magic.cc')
-rw-r--r--src/magic.cc5
1 files changed, 3 insertions, 2 deletions
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;