aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts/include
diff options
context:
space:
mode:
Diffstat (limited to 'src/bindings/scripts/include')
-rw-r--r--src/bindings/scripts/include/sc_creature.cpp21
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
+}