diff options
author | megamage <none@none> | 2009-02-05 15:38:24 -0600 |
---|---|---|
committer | megamage <none@none> | 2009-02-05 15:38:24 -0600 |
commit | 2aff5260eada5a9a03a56ebce91f775105d7c92b (patch) | |
tree | 7721dc143492f4504de6d617d0954ebc07383b68 /src/bindings/scripts/include | |
parent | 649ab47d5467dde5ee5f749dad742fd0ca349a4d (diff) |
*Allow scripts to override SQL and DBC data.
--HG--
branch : trunk
Diffstat (limited to 'src/bindings/scripts/include')
-rw-r--r-- | src/bindings/scripts/include/sc_creature.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/src/bindings/scripts/include/sc_creature.cpp b/src/bindings/scripts/include/sc_creature.cpp index f9f9e04235e..6ffa4261488 100644 --- a/src/bindings/scripts/include/sc_creature.cpp +++ b/src/bindings/scripts/include/sc_creature.cpp @@ -8,6 +8,7 @@ #include "precompiled.h" #include "Item.h" #include "Spell.h" +#include "ObjectMgr.h" // Spell summary for ScriptedAI::SelectSpell struct TSpellSummary { @@ -828,3 +829,23 @@ void Scripted_NoMovementAI::AttackStart(Unit* who) DoStartNoMovement(who); } } + +void LoadOverridenSQLData() +{ + GameObjectInfo *goInfo; + + // Sunwell Plateau : Kalecgos : Spectral Rift + goInfo = const_cast<GameObjectInfo*>(GetGameObjectInfo(187055)); + if(goInfo && goInfo->type == GAMEOBJECT_TYPE_GOOBER) + goInfo->goober.lockId = 1714; // need LOCKTYPE_QUICK_OPEN +} + +void LoadOverridenDBCData() +{ + SpellEntry *spellInfo; + + // Black Temple : Illidan : Parasitic Shadowfiend Passive + spellInfo = const_cast<SpellEntry*>(GetSpellStore()->LookupEntry(41913)); + if(spellInfo) + spellInfo->EffectApplyAuraName[0] = 4; // proc debuff, and summon infinite fiends +} |