Created
June 1, 2011 13:14
-
-
Save SignFinder/1002262 to your computer and use it in GitHub Desktop.
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
--- a/src/server/game/Spells/SpellEffects.cpp | |
+++ b/src/server/game/Spells/SpellEffects.cpp | |
@@ -2877,6 +2877,25 @@ void Spell::EffectOpenLock(SpellEffIndex | |
uint32 lockId = 0; | |
uint64 guid = 0; | |
+ // selection by spell family | |
+ switch (m_spellInfo->SpellFamilyName) | |
+ { | |
+ case SPELLFAMILY_GENERIC: | |
+ { | |
+ switch (m_spellInfo->Id) | |
+ { | |
+ case 38790: | |
+ { | |
+ if (!m_caster || m_caster->GetTypeId() != TYPEID_PLAYER) | |
+ return; | |
+ | |
+ m_caster->ToPlayer()->KilledMonsterCredit(22112,0); | |
+ return; | |
+ } | |
+ } | |
+ } | |
+ } | |
+ | |
// Get lockId | |
if (gameObjTarget) | |
{ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment