aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeader <keader.android@gmail.com>2017-06-01 21:20:55 -0300
committerKeader <keader.android@gmail.com>2017-06-01 21:20:55 -0300
commit0c6829f7f22f32e602ea6ed440d50f2f596ba998 (patch)
tree5d9ab56736602048dad431731d4b0f0b5c3eab39
parent877749cf3ffd479a87f7b3a7ac1b3703389c6cb3 (diff)
Core/Scripts: Fixed some events that not should triggered by non-players on Illidan encounter
-rw-r--r--src/server/scripts/Outland/BlackTemple/boss_illidan.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp b/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp
index e95dde28a5f..84ce4d42354 100644
--- a/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp
+++ b/src/server/scripts/Outland/BlackTemple/boss_illidan.cpp
@@ -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