示例#1
0
		void OnLeave(Character chr)
		{
			Team.Remove(chr.EntityId.Low);
			chr.RemoveUpdateAction(UpdateCallback);

			// hide all figurines
			chr.ResetOwnWorld();
		}
示例#2
0
		/// <summary>
		/// Called when flag is captured, or dropped
		/// </summary>
		void OnFlagAuraRemoved(Character chr)
		{
			chr.RemoveUpdateAction(_debuffUpdate);
		}
示例#3
0
		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);
		}
示例#4
0
		/// <summary>
		/// Called when flag is captured, or dropped
		/// </summary>
		void OnFlagAuraRemoved(Character chr)
		{
			chr.RemoveUpdateAction(m_DebuffObjectUpdate);
		}