mirror of
https://github.com/moparisthebest/MoparClassic
synced 2024-12-22 15:38:52 -05:00
#116 - this.stop() + return;
This commit is contained in:
parent
18b63da356
commit
fc1444206b
@ -61,6 +61,7 @@ public class FightEvent extends DelayedEvent {
|
||||
public void run() {
|
||||
if(owner == null || affectedMob == null) {
|
||||
this.stop();
|
||||
return;
|
||||
}
|
||||
if (!owner.loggedIn()
|
||||
|| (affectedMob instanceof Player && !((Player) affectedMob)
|
||||
@ -68,6 +69,7 @@ public class FightEvent extends DelayedEvent {
|
||||
owner.resetCombat(CombatState.ERROR);
|
||||
affectedMob.resetCombat(CombatState.ERROR);
|
||||
this.stop();
|
||||
return;
|
||||
}
|
||||
|
||||
Mob attacker, opponent;
|
||||
@ -86,6 +88,7 @@ public class FightEvent extends DelayedEvent {
|
||||
n.resetCombat(CombatState.ERROR);
|
||||
owner.resetCombat(CombatState.ERROR);
|
||||
this.stop();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (opponent instanceof Npc) {
|
||||
@ -94,6 +97,7 @@ public class FightEvent extends DelayedEvent {
|
||||
n.resetCombat(CombatState.ERROR);
|
||||
owner.resetCombat(CombatState.ERROR);
|
||||
this.stop();
|
||||
return;
|
||||
}
|
||||
}
|
||||
if (opponent instanceof Player && attacker instanceof Player) {
|
||||
|
Loading…
Reference in New Issue
Block a user