aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2017-01-21 23:48:04 -0300
committerariel- <ariel-@users.noreply.github.com>2017-01-21 23:48:04 -0300
commita8c2d5986411b5027a8716bc7f96e57c2ec4f70a (patch)
tree741cf6e27964bcd34b1af230c72a28cb31691c96 /src
parentc3474f57bc053c67448169a4c7bb83e10bb25015 (diff)
Core/Scripts: Fix Lock and Load proc with Frost trap
Diffstat (limited to 'src')
-rw-r--r--src/server/scripts/Spells/spell_hunter.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/server/scripts/Spells/spell_hunter.cpp b/src/server/scripts/Spells/spell_hunter.cpp
index a5f5b1de1d7..55178271540 100644
--- a/src/server/scripts/Spells/spell_hunter.cpp
+++ b/src/server/scripts/Spells/spell_hunter.cpp
@@ -687,8 +687,8 @@ class spell_hun_lock_and_load : public SpellScriptLoader
return false;
// Do not proc on traps for immolation/explosive trap
- DamageInfo* damageInfo = eventInfo.GetDamageInfo();
- if (!damageInfo || !(damageInfo->GetSchoolMask() & SPELL_SCHOOL_MASK_FROST))
+ SpellInfo const* spellInfo = eventInfo.GetSpellInfo();
+ if (!spellInfo || !(spellInfo->GetSchoolMask() & SPELL_SCHOOL_MASK_FROST))
return false;
return roll_chance_i(aurEff->GetAmount());