forked from 2009Scape/Server
failing to enter gwd boss room no longer consumes faction kill count
This commit is contained in:
parent
7ee3daee00
commit
d749c8610f
1 changed files with 6 additions and 2 deletions
|
|
@ -16,6 +16,7 @@ import core.game.node.entity.player.info.Rights;
|
|||
import core.game.node.item.Item;
|
||||
import core.game.node.scenery.Scenery;
|
||||
import core.game.system.task.Pulse;
|
||||
import rs09.game.system.SystemLogger;
|
||||
import rs09.game.world.GameWorld;
|
||||
import core.game.world.map.Direction;
|
||||
import core.game.world.map.Location;
|
||||
|
|
@ -365,8 +366,11 @@ public final class GodwarsMapzone extends MapZone implements Plugin<Object> {
|
|||
player.getPacketDispatch().sendMessage("You need " + required + " " + StringUtils.formatDisplayName(name) + " kills to enter this.");
|
||||
return true;
|
||||
}
|
||||
increaseKillcount(player, faction, -required);
|
||||
DoorActionHandler.handleAutowalkDoor(player, object);
|
||||
|
||||
if (DoorActionHandler.handleAutowalkDoor(player, object)) {
|
||||
SystemLogger.logInfo(player.getUsername() + " entered " + faction.name() + " gwd boss room");
|
||||
increaseKillcount(player, faction, -required);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue