*Add m_isAggressive. Only aggressive creatures will call AttackStart and MoveInLineOfSight.

*Set melee dmg school for summoned creatures.
*Fix some compiling errors.

--HG--
branch : trunk
This commit is contained in:
megamage
2008-11-20 18:54:50 -06:00
parent 182c997573
commit 2c95ee4b31
7 changed files with 23 additions and 10 deletions
+3
View File
@@ -97,6 +97,9 @@ void Totem::Summon(Unit* owner)
case TOTEM_STATUE: CastSpell(GetOwner(), GetSpell(), true); break;
default: break;
}
if(GetEntry() == SENTRY_TOTEM_ENTRY)
SetAggressive(true);
}
void Totem::UnSummon()