diff options
author | megamage <none@none> | 2009-05-10 01:22:51 -0500 |
---|---|---|
committer | megamage <none@none> | 2009-05-10 01:22:51 -0500 |
commit | 1576a44d38eb1d9c035652e2bc109488d12f1ce4 (patch) | |
tree | da693d9dd3068529d1efecc964d91d165836da1f /src/bindings/scripts/include | |
parent | d0bf6edd3603e978a0b1aa47dd25526245e28549 (diff) |
*Update naxx script.
--HG--
branch : trunk
Diffstat (limited to 'src/bindings/scripts/include')
-rw-r--r-- | src/bindings/scripts/include/sc_creature.cpp | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/src/bindings/scripts/include/sc_creature.cpp b/src/bindings/scripts/include/sc_creature.cpp index a76fbb8e1ef..82743bcd9e5 100644 --- a/src/bindings/scripts/include/sc_creature.cpp +++ b/src/bindings/scripts/include/sc_creature.cpp @@ -775,14 +775,21 @@ void Scripted_NoMovementAI::AttackStart(Unit* who) } } +#define GOBJECT(x) (const_cast<GameObjectInfo*>(GetGameObjectInfo(x))) + 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 = 57; // need LOCKTYPE_QUICK_OPEN + if(goInfo = GOBJECT(187055)) + if(goInfo->type == GAMEOBJECT_TYPE_GOOBER) + goInfo->goober.lockId = 57; // need LOCKTYPE_QUICK_OPEN + + // Naxxramas : Sapphiron Birth + if(goInfo = GOBJECT(181356)) + if(goInfo->type == GAMEOBJECT_TYPE_TRAP) + goInfo->trap.radius = 50; } #define SPELL(x) const_cast<SpellEntry*>(GetSpellStore()->LookupEntry(x)) |