Noudess: This makes newly spawned NPCs have a chance to cast

This commit is contained in:
Akkadius
2018-01-13 22:14:21 -06:00
parent 26213f9049
commit 40ebee9ff4
2 changed files with 9 additions and 1 deletions
+6
View File
@@ -1762,6 +1762,12 @@ void Mob::AI_Event_Engaged(Mob* attacker, bool iYellForHelp) {
SetAppearance(eaStanding);
/*
Kick off auto cast timer
*/
if (this->IsNPC())
this->CastToNPC()->AIautocastspell_timer->Start(300, false);
if (iYellForHelp) {
if(IsPet()) {
GetOwner()->AI_Event_Engaged(attacker, iYellForHelp);