From 699341773dda3ae14a5025b9285bdd05c99bc234 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Tue, 10 Jun 2025 03:32:22 -0300 Subject: most `info.cc` functions --- src/magic.cc | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'src/magic.cc') 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); } -- cgit v1.2.3