murder count bug fix;inappropriate post-mortum deflagging fixed
This commit is contained in:
parent
6a221f4e10
commit
85d9f0166b
1 changed files with 2 additions and 13 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue