From ea319bc2fbef91e3ea062be554b215756648d1d3 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Wed, 25 Jun 2025 10:09:17 -0300 Subject: finish `crnonpl.cc` --- src/crmain.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/crmain.cc') diff --git a/src/crmain.cc b/src/crmain.cc index 3d45827..b786676 100644 --- a/src/crmain.cc +++ b/src/crmain.cc @@ -589,11 +589,9 @@ int TCreature::Damage(TCreature *Attacker, int Damage, int DamageType){ this->DamageStimulus(Attacker->ID, Damage, DamageType); - // NOTE(fusion): Remove non-player illusion. Might as well be an inlined + // NOTE(fusion): Remove non-player invisibility. Might as well be an inlined // function. - if(this->Type != PLAYER - && this->Outfit.OutfitID == 0 - && this->Outfit.ObjectType == 0){ + if(this->Type != PLAYER && this->IsInvisible()){ this->SetTimer(SKILL_ILLUSION, 0, 0, 0, -1); this->Outfit = this->OrgOutfit; AnnounceChangedCreature(this->ID, CREATURE_OUTFIT_CHANGED); -- cgit v1.2.3