void OnLeave(Character chr) { Team.Remove(chr.EntityId.Low); chr.RemoveUpdateAction(UpdateCallback); // hide all figurines chr.ResetOwnWorld(); }
/// <summary> /// Called when flag is captured, or dropped /// </summary> void OnFlagAuraRemoved(Character chr) { chr.RemoveUpdateAction(_debuffUpdate); }
protected override void OnEnter(Character chr) { base.OnEnter(chr); var invitation = chr.Battlegrounds.Invitation; if (invitation == null) { // don't join a team if not invited return; } var team = invitation.Team; if (team.Battleground != this) { // decided for another BG in the meantime team.Battleground.TeleportInside(chr); return; } // stop cancel timer chr.RemoveUpdateAction(invitation.CancelTimer); // Cast the spell "10% Healing Reduction in BG/Arenas" chr.SpellCast.TriggerSelf(_healingReductionSpell); // join team JoinTeam(chr, team); BattlegroundHandler.SendStatusActive(chr, this, invitation.QueueIndex); }
/// <summary> /// Called when flag is captured, or dropped /// </summary> void OnFlagAuraRemoved(Character chr) { chr.RemoveUpdateAction(m_DebuffObjectUpdate); }