Core/AI: CreatureAI.EnterCombat is now called CreatureAI.JustEngagedWith. There's also two new methods on UnitAI, though they're never invoked right now.
Port From (https://github.com/TrinityCore/TrinityCore/commit/bce43de7f3fba618c370f2aba327d23dd30d1cdd)
This commit is contained in:
@@ -118,7 +118,7 @@ namespace Scripts.World.NpcGuard
|
||||
DoReplyToTextEmote(textEmote);
|
||||
}
|
||||
|
||||
public override void EnterCombat(Unit who)
|
||||
public override void JustEngagedWith(Unit who)
|
||||
{
|
||||
if (me.GetEntry() == CreatureIds.CenarionHoldInfantry)
|
||||
Talk(TextIds.SayGuardSilAggro, who);
|
||||
@@ -202,7 +202,7 @@ namespace Scripts.World.NpcGuard
|
||||
_scheduler.CancelAll();
|
||||
}
|
||||
|
||||
public override void EnterCombat(Unit who)
|
||||
public override void JustEngagedWith(Unit who)
|
||||
{
|
||||
ScheduleVanish();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user