murder count bug fix;inappropriate post-mortum deflagging fixed

This commit is contained in:
xavier 2010-11-18 21:38:01 +00:00
parent 6a221f4e10
commit 85d9f0166b

View file

@ -33,6 +33,7 @@ namespace Server.Gumps
{
killers.Add( ai.Attacker );
ai.Reported = true;
ai.CanReportMurder = false;
}
if ( ai.Attacker.Player && (DateTime.Now - ai.LastCombatTime) < TimeSpan.FromSeconds( 30.0 ) && !toGive.Contains( ai.Attacker ) )
toGive.Add( ai.Attacker );
@ -69,19 +70,7 @@ namespace Server.Gumps
if ( killers.Count > 0 )
new GumpTimer( m, killers ).Start();
/*
TODO: Check entire combatant system and see if the
cobatant lists should be handled a different
way, and change it accordingly. This is a
small-scope patch to prevent an exploit.
*/
for ( int i = m.Aggressors.Count - 1; i >= 0; --i )
{
m.Aggressors.RemoveAt ( i );
}
}
private class GumpTimer : Timer