From 1576a44d38eb1d9c035652e2bc109488d12f1ce4 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 10 May 2009 01:22:51 -0500 Subject: *Update naxx script. --HG-- branch : trunk --- src/bindings/scripts/include/sc_creature.cpp | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'src/bindings/scripts/include') 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(GetGameObjectInfo(x))) + void LoadOverridenSQLData() { GameObjectInfo *goInfo; // Sunwell Plateau : Kalecgos : Spectral Rift - goInfo = const_cast(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(GetSpellStore()->LookupEntry(x)) -- cgit v1.2.3