*Change typecasts to use build in functions/macros in scripts to prevent possible access violation.

*Remove no longer needed hack from netherspite script.

--HG--
branch : trunk
This commit is contained in:
QAston
2010-07-30 21:16:15 +02:00
parent 48b360097c
commit 204834d33d
3 changed files with 5 additions and 11 deletions
@@ -70,12 +70,6 @@ struct boss_netherspiteAI : public ScriptedAI
BeamTarget[i] = 0;
BeamerGUID[i] = 0;
}
// need core fix
for (int i=0; i<3; ++i)
{
if (SpellEntry *spell = (SpellEntry*)GetSpellStore()->LookupEntry(PlayerBuff[i]))
spell->AttributesEx |= SPELL_ATTR_EX_NEGATIVE;
}
}
ScriptedInstance* pInstance;