diff options
Diffstat (limited to 'src/cract.cc')
| -rw-r--r-- | src/cract.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/cract.cc b/src/cract.cc index dea0ae2..e0af29f 100644 --- a/src/cract.cc +++ b/src/cract.cc @@ -1566,12 +1566,11 @@ void TCreature::NotifyChangeInventory(void){ AnnounceChangedCreature(this->ID, CREATURE_SPEED_CHANGED); }else if(SkillNr == SKILL_ILLUSION){ if(NewDelta[SKILL_ILLUSION] > 0){ - if(this->Outfit.OutfitID != 0 || this->Outfit.ObjectType != 0){ + if(!this->IsInvisible()){ if(Skill->TimerValue() != 0){ this->SetTimer(SKILL_ILLUSION, 0, 0, 0, -1); } - this->Outfit.OutfitID = 0; - this->Outfit.ObjectType = 0; + this->Outfit = TOutfit::Invisible(); } }else if(Skill->TimerValue() == 0){ this->Outfit = this->OrgOutfit; |
