diff options
| author | fusion32 <marcopuzziello@gmail.com> | 2025-06-25 10:09:17 -0300 |
|---|---|---|
| committer | fusion32 <marcopuzziello@gmail.com> | 2025-06-25 10:09:17 -0300 |
| commit | ea319bc2fbef91e3ea062be554b215756648d1d3 (patch) | |
| tree | aa26422a754346e9881e5e0b510f78fd4cfe068c /src/crmain.cc | |
| parent | 8bc2e5dc3a523af471065752a534d20d878c60b0 (diff) | |
| download | game-ea319bc2fbef91e3ea062be554b215756648d1d3.tar.gz game-ea319bc2fbef91e3ea062be554b215756648d1d3.zip | |
finish `crnonpl.cc`
Diffstat (limited to 'src/crmain.cc')
| -rw-r--r-- | src/crmain.cc | 6 |
1 files changed, 2 insertions, 4 deletions
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); |
