mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
Apply style fix pt3
This commit is contained in:
parent
1392c131e7
commit
d93dbd95fe
191 changed files with 9851 additions and 676 deletions
|
|
@ -36,7 +36,9 @@ int
|
|||
TotemAI::Permissible(const Creature* creature)
|
||||
{
|
||||
if (creature->IsTotem())
|
||||
{
|
||||
return PERMIT_BASE_PROACTIVE;
|
||||
}
|
||||
|
||||
return PERMIT_BASE_NO;
|
||||
}
|
||||
|
|
@ -59,15 +61,21 @@ void
|
|||
TotemAI::UpdateAI(const uint32 /*diff*/)
|
||||
{
|
||||
if (getTotem().GetTotemType() != TOTEM_ACTIVE)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
if (!m_creature->IsAlive() || m_creature->IsNonMeleeSpellCasted(false))
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Search spell
|
||||
SpellEntry const* spellInfo = sSpellStore.LookupEntry(getTotem().GetSpell());
|
||||
if (!spellInfo)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
// Get spell rangy
|
||||
SpellRangeEntry const* srange = sSpellRangeStore.LookupEntry(spellInfo->rangeIndex);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue