mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-05 03:53:48 +00:00
refactor(Core/Object): adds consistency in the use of type object check (#19671)
This commit is contained in:
@@ -299,7 +299,7 @@ class spell_enveloping_webs : public SpellScript
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
Unit* hitUnit = GetHitUnit();
|
||||
if (caster && hitUnit && hitUnit->GetTypeId() == TYPEID_PLAYER)
|
||||
if (caster && hitUnit && hitUnit->IsPlayer())
|
||||
{
|
||||
caster->GetThreatMgr().ModifyThreatByPercent(hitUnit, -100);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user