public static void HandleDeath(Mobile victim, Mobile killer) { if (killer == null) { killer = victim.FindMostRecentDamager(false); } if (killer == null || victim.Guild == null || killer.Guild == null) { return; } Guild victimGuild = GetAllianceLeader(victim.Guild as Guild); Guild killerGuild = GetAllianceLeader(killer.Guild as Guild); WarDeclaration war = killerGuild.FindActiveWar(victimGuild); if (war == null) { return; } war.Kills++; if (war.Opponent == victimGuild) { killerGuild.CheckExpiredWars(); } else { victimGuild.CheckExpiredWars(); } }
public OtherGuildInfo( PlayerMobile pm, Guild g, Guild otherGuild ) : base( pm, g, 10, 40 ) { m_Other = otherGuild; g.CheckExpiredWars(); PopulateGump(); }
public OtherGuildInfo(PlayerMobile pm, Guild g, Guild otherGuild) : base(pm, g, 10, 40) { m_Other = otherGuild; g.CheckExpiredWars(); PopulateGump(); }