*Update Sapphiron script.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-09 10:50:41 -05:00
parent 1de3e5d8e8
commit e35d07ad81
8 changed files with 219 additions and 22 deletions

View File

@@ -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;
}
}

View File

@@ -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) {}
};