forked from MagicBane/Server
null combat stats error
This commit is contained in:
1 parent
2f201151df
commit
2dbaac5bcf
1 file changed
+4
@@ -554,8 +554,12 @@ public enum CombatManager {
|
||||
|
||||
if (target == null)
|
||||
return;
|
||||
|
||||
if(ac.getObjectType().equals(GameObjectType.PlayerCharacter)){
|
||||
PlayerCharacter pc = (PlayerCharacter) ac;
|
||||
if( pc.combatStats == null){
|
||||
pc.combatStats = new PlayerCombatStats(pc);
|
||||
}
|
||||
pc.combatStats.calculateATR(true);
|
||||
pc.combatStats.calculateATR(false);
|
||||
if (mainHand) {
|
||||
|
||||
Reference in new issue
Block a user