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/magic.cc | |
| parent | 8bc2e5dc3a523af471065752a534d20d878c60b0 (diff) | |
| download | game-ea319bc2fbef91e3ea062be554b215756648d1d3.tar.gz game-ea319bc2fbef91e3ea062be554b215756648d1d3.zip | |
finish `crnonpl.cc`
Diffstat (limited to 'src/magic.cc')
| -rw-r--r-- | src/magic.cc | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/magic.cc b/src/magic.cc index 4ed1826..19a9dc8 100644 --- a/src/magic.cc +++ b/src/magic.cc @@ -968,8 +968,7 @@ void KillAllMonsters(TCreature *Actor, int Effect, int Radius){ error("KillAllMonsters: Ungültige Kreatur.\n"); }else if(Actor != Victim && Victim->Type == MONSTER){ print(3, "Töte %s...\n", Victim->Name); - Victim->Skills[SKILL_HITPOINTS]->Set(0); - Victim->Death(); + Victim->Kill(); } } Obj = Obj.getNextObject(); @@ -2395,7 +2394,7 @@ void CancelInvisibility(TCreature *Actor, Object Target, int ManaPoints, int Sou TCreature *Victim = GetCreature(Obj); if(Victim == NULL){ error("CancelInvisibility: Ungültige Kreatur.\n"); - }else if(Victim->Outfit.OutfitID == 0 && Victim->Outfit.ObjectType == 0 + }else if(Victim->IsInvisible() && (WorldType != NON_PVP || !Victim->IsPeaceful())){ Victim->SetTimer(SKILL_ILLUSION, 0, 0, 0, -1); if(Victim->Skills[SKILL_ILLUSION]->Get() == 0){ |
