From b9124b049a47323cafa8807db4d501fb32a53297 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Sun, 12 Oct 2025 17:38:12 -0300 Subject: fix problem with outfit comparisons - fixes #39 --- src/cract.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/cract.cc') 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; -- cgit v1.2.3