mirror of
https://github.com/mangosfour/server.git
synced 2025-12-15 01:37:00 +00:00
Various Cleanups (game C-E)
This commit is contained in:
parent
f80629e307
commit
c5c09cee3c
40 changed files with 1826 additions and 1818 deletions
|
|
@ -25,13 +25,13 @@ CreatureAI::~CreatureAI()
|
|||
{
|
||||
}
|
||||
|
||||
void CreatureAI::AttackedBy( Unit* attacker )
|
||||
void CreatureAI::AttackedBy(Unit* attacker)
|
||||
{
|
||||
if(!m_creature->getVictim())
|
||||
if (!m_creature->getVictim())
|
||||
AttackStart(attacker);
|
||||
}
|
||||
|
||||
CanCastResult CreatureAI::CanCastSpell(Unit* pTarget, const SpellEntry *pSpell, bool isTriggered)
|
||||
CanCastResult CreatureAI::CanCastSpell(Unit* pTarget, const SpellEntry* pSpell, bool isTriggered)
|
||||
{
|
||||
// If not triggered, we check
|
||||
if (!isTriggered)
|
||||
|
|
@ -51,7 +51,7 @@ CanCastResult CreatureAI::CanCastSpell(Unit* pTarget, const SpellEntry *pSpell,
|
|||
return CAST_FAIL_POWER;
|
||||
}
|
||||
|
||||
if (const SpellRangeEntry *pSpellRange = sSpellRangeStore.LookupEntry(pSpell->rangeIndex))
|
||||
if (const SpellRangeEntry* pSpellRange = sSpellRangeStore.LookupEntry(pSpell->rangeIndex))
|
||||
{
|
||||
if (pTarget != m_creature)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue