From 15c92f019a92c3840b82bebbdb8c76b140c1fa1d Mon Sep 17 00:00:00 2001 From: "Michael Cook (mackal)" Date: Mon, 25 Jan 2016 14:00:22 -0500 Subject: [PATCH] Mob::Charmed() should be useful now We should really clean this up, but this is quicker --- zone/mob.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zone/mob.h b/zone/mob.h index 516bdfe8b..554634006 100644 --- a/zone/mob.h +++ b/zone/mob.h @@ -887,7 +887,7 @@ public: Mob* GetShieldTarget() const { return shield_target; } void SetShieldTarget(Mob* mob) { shield_target = mob; } bool HasActiveSong() const { return(bardsong != 0); } - bool Charmed() const { return charmed; } + bool Charmed() const { return typeofpet == petCharmed; } static uint32 GetLevelHP(uint8 tlevel); uint32 GetZoneID() const; //for perl virtual int32 CheckAggroAmount(uint16 spell_id, Mob *target, bool isproc = false);