Created
February 18, 2012 10:27
-
-
Save Jildor/1858640 to your computer and use it in GitHub Desktop.
Fix Pick Lock
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// skill bonus provided by casting spell (mostly item spells) | |
// add the damage modifier from the spell casted (cheat lock / skeleton key etc.) | |
- if (m_spellInfo->Effects[effIndex].TargetA.GetTarget() == TARGET_GAMEOBJECT_ITEM_TARGET || m_spellInfo->Effects[effIndex].TargetB.GetTarget() == TARGET_GAMEOBJECT_ITEM_TARGET) | |
- skillValue += uint32(CalculateDamage(effIndex, NULL)); | |
+ if (m_spellInfo->Id != 1804) | |
+ if (m_spellInfo->Effects[effIndex].TargetA.GetTarget() == TARGET_GAMEOBJECT_ITEM_TARGET || m_spellInfo->Effects[effIndex].TargetB.GetTarget() == TARGET_GAMEOBJECT_ITEM_TARGET) | |
+ skillValue += uint32(CalculateDamage(effIndex, NULL)); | |
if (skillValue < reqSkillValue) | |
return SPELL_FAILED_LOW_CASTLEVEL; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment