diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-06-10 03:32:22 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-06-10 03:32:22 -0300 |
| commit | 699341773dda3ae14a5025b9285bdd05c99bc234 (patch) | |
| tree | a166fcb1fef64f31520a6a26d94a6c83799efce3 /src/magic.cc | |
| parent | cd8f3f412c2a5f49ee25aab83079a655b88d6def (diff) | |
| download | game-699341773dda3ae14a5025b9285bdd05c99bc234.tar.gz game-699341773dda3ae14a5025b9285bdd05c99bc234.zip | |
most `info.cc` functions
Diffstat (limited to 'src/magic.cc')
| -rw-r--r-- | src/magic.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/magic.cc b/src/magic.cc index 46da798..28c1aa5 100644 --- a/src/magic.cc +++ b/src/magic.cc @@ -2487,11 +2487,7 @@ void ObjectIllusion(TCreature *Actor, int ManaPoints, int SoulPoints, Object Tar CheckMana(Actor, ManaPoints, SoulPoints, 1000); if(Actor->Skills[SKILL_ILLUSION]->Get() == 0){ Actor->Outfit.OutfitID = 0; - if(TargetType.getFlag(DISGUISE)){ - Actor->Outfit.ObjectType = (uint16)TargetType.getAttribute(DISGUISETARGET); - }else{ - Actor->Outfit.ObjectType = (uint16)TargetType.TypeID; - } + Actor->Outfit.ObjectType = (uint16)TargetType.getDisguise().TypeID; Actor->SetTimer(SKILL_ILLUSION, 1, Duration, Duration, -1); } |
