Skip to content

Commit

Permalink
Merge pull request #76 from mikeygio10/patch-2
Browse files Browse the repository at this point in the history
Update CombatEngine.php
  • Loading branch information
Sandertv committed Mar 30, 2020
2 parents 3937e7c + 88ae426 commit a9bee27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/factions/engine/CombatEngine.php
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,9 @@ public static function canCombatDamageHappen(EntityDamageByEntityEvent $event, $
$mattacker = $attacker instanceof Player ? Members::get($attacker) : null;
$mdefender = Members::get($victim);
$defendFaction = $mdefender->getFaction();
if ($mattacker == null) {
return false;
}
$attackFaction = $mattacker->getFaction(); # ERROR

if ($mattacker !== null && $mdefender->isOverriding() || $mattacker->isOverriding()) return true;
Expand Down

0 comments on commit a9bee27

Please sign in to comment.