aboutsummaryrefslogtreecommitdiff
path: root/src/bindings/scripts/include
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-09 10:50:41 -0500
committermegamage <none@none>2009-05-09 10:50:41 -0500
commite35d07ad81f5acedcbe436bf429db5581edc6b81 (patch)
treeae238465d80bc7dcbba5b66dddf6708837be6f2a /src/bindings/scripts/include
parent1de3e5d8e846c7bfe48ca4982df7615c392abb9e (diff)
*Update Sapphiron script.
--HG-- branch : trunk
Diffstat (limited to 'src/bindings/scripts/include')
-rw-r--r--src/bindings/scripts/include/sc_creature.cpp22
-rw-r--r--src/bindings/scripts/include/sc_creature.h3
2 files changed, 20 insertions, 5 deletions
diff --git a/src/bindings/scripts/include/sc_creature.cpp b/src/bindings/scripts/include/sc_creature.cpp
index 258c7627dce..a76fbb8e1ef 100644
--- a/src/bindings/scripts/include/sc_creature.cpp
+++ b/src/bindings/scripts/include/sc_creature.cpp
@@ -785,13 +785,29 @@ void LoadOverridenSQLData()
goInfo->goober.lockId = 57; // need LOCKTYPE_QUICK_OPEN
}
+#define SPELL(x) const_cast<SpellEntry*>(GetSpellStore()->LookupEntry(x))
+
void LoadOverridenDBCData()
{
SpellEntry *spellInfo;
// Black Temple : Illidan : Parasitic Shadowfiend Passive
- spellInfo = const_cast<SpellEntry*>(GetSpellStore()->LookupEntry(41913));
- if(spellInfo)
+ if(spellInfo = SPELL(41913))
spellInfo->EffectApplyAuraName[0] = 4; // proc debuff, and summon infinite fiends
-}
+ // Naxxramas : Sapphiron : Frost Breath Visual Effect
+ //if(spellInfo = SPELL(30101))
+ // spellInfo->EffectImplicitTargetA[0] = TARGET_DEST_DEST; // orig 18
+
+ //temp, not needed in 310
+ if(spellInfo = SPELL(28531))
+ {
+ spellInfo->DurationIndex = 21;
+ spellInfo->Effect[0] = SPELL_EFFECT_APPLY_AREA_AURA_ENEMY;
+ }
+ if(spellInfo = SPELL(55799))
+ {
+ spellInfo->DurationIndex = 21;
+ spellInfo->Effect[0] = SPELL_EFFECT_APPLY_AREA_AURA_ENEMY;
+ }
+}
diff --git a/src/bindings/scripts/include/sc_creature.h b/src/bindings/scripts/include/sc_creature.h
index 638b6926a27..c2c93a520a9 100644
--- a/src/bindings/scripts/include/sc_creature.h
+++ b/src/bindings/scripts/include/sc_creature.h
@@ -137,7 +137,7 @@ struct TRINITY_DLL_DECL ScriptedAI : public CreatureAI
void JustRespawned();
//Called at waypoint reached or PointMovement end
- void MovementInform(uint32, uint32){}
+ void MovementInform(uint32 type, uint32 id){}
// Called when AI is temporarily replaced or put back when possess is applied or removed
void OnPossess(bool apply) {}
@@ -264,7 +264,6 @@ struct TRINITY_DLL_DECL NullCreatureAI : public ScriptedAI
void MoveInLineOfSight(Unit *) {}
void AttackStart(Unit *) {}
void EnterEvadeMode() {}
- bool IsVisible(Unit *) const { return false; }
void UpdateAI(const uint32) {}
};