mirror of
https://github.com/mangosfour/server.git
synced 2025-12-26 07:37:02 +00:00
[Build] Most errors fixed
This commit is contained in:
parent
868302dd0b
commit
778052084e
70 changed files with 619 additions and 602 deletions
|
|
@ -61,7 +61,7 @@ TotemAI::UpdateAI(const uint32 /*diff*/)
|
|||
if (getTotem().GetTotemType() != TOTEM_ACTIVE)
|
||||
return;
|
||||
|
||||
if (!m_creature->isAlive() || m_creature->IsNonMeleeSpellCasted(false))
|
||||
if (!m_creature->IsAlive() || m_creature->IsNonMeleeSpellCasted(false))
|
||||
return;
|
||||
|
||||
// Search spell
|
||||
|
|
@ -80,8 +80,8 @@ TotemAI::UpdateAI(const uint32 /*diff*/)
|
|||
|
||||
// Search victim if no, not attackable, or out of range, or friendly (possible in case duel end)
|
||||
if (!victim ||
|
||||
!victim->isTargetableForAttack() || !m_creature->IsWithinDistInMap(victim, max_range) ||
|
||||
m_creature->IsFriendlyTo(victim) || !victim->isVisibleForOrDetect(m_creature, m_creature, false))
|
||||
!victim->IsTargetableForAttack() || !m_creature->IsWithinDistInMap(victim, max_range) ||
|
||||
m_creature->IsFriendlyTo(victim) || !victim->IsVisibleForOrDetect(m_creature, m_creature, false))
|
||||
{
|
||||
victim = NULL;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue