Skip to content

Instantly share code, notes, and snippets.

@SignFinder
Created June 1, 2011 13:14
Show Gist options
  • Save SignFinder/1002262 to your computer and use it in GitHub Desktop.
Save SignFinder/1002262 to your computer and use it in GitHub Desktop.
--- 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