mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-20 17:27:36 +01:00
Core/Scripts: Fixed some events that not should triggered by non-players on Illidan encounter
This commit is contained in:
@@ -434,7 +434,7 @@ public:
|
||||
|
||||
bool operator()(Unit* unit) const
|
||||
{
|
||||
return _me->GetDistance2d(unit) > 25.0f;
|
||||
return unit->GetTypeId() == TYPEID_PLAYER && _me->GetDistance2d(unit) > 25.0f;
|
||||
}
|
||||
|
||||
private:
|
||||
@@ -2079,7 +2079,8 @@ class spell_illidan_flame_blast : public SpellScriptLoader
|
||||
void HandleBlaze(SpellEffIndex /*effIndex*/)
|
||||
{
|
||||
Unit* target = GetHitUnit();
|
||||
target->CastSpell(target, SPELL_BLAZE_SUMMON, true);
|
||||
if (target->GetTypeId() == TYPEID_PLAYER)
|
||||
target->CastSpell(target, SPELL_BLAZE_SUMMON, true);
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
Reference in New Issue
Block a user