aboutsummaryrefslogtreecommitdiff
path: root/src/magic.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/magic.cc')
-rw-r--r--src/magic.cc6
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);
}