mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-06-28 00:24:23 +00:00
fix: undefined indexes
This commit is contained in:
@@ -468,7 +468,7 @@ class Battle {
|
||||
// Formula for calculating points attackers (Infantry & Cavalry)
|
||||
|
||||
if($AttackerWref != 0){
|
||||
$rap = ($ap+$cap)+(($ap+$cap)/100*$bid35[$this->getTypeLevel(35,$AttackerWref)]['attri']);
|
||||
$rap = ($ap+$cap)+(($ap+$cap)/100*(isset($bid35[$this->getTypeLevel(35,$AttackerWref)]) ? $bid35[$this->getTypeLevel(35,$AttackerWref)]['attri'] : 0));
|
||||
}else{
|
||||
$rap = $ap+$cap;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user