Ticket #3484: capture.diff
File capture.diff, 657 bytes (added by , 7 years ago) |
---|
-
binaries/data/mods/public/simulation/components/Attack.js
553 553 return; 554 554 555 555 let strength = this.GetAttackStrengths("Capture").value * multiplier; 556 if (cmpCapturable.Reduce(strength, attackerOwner) )556 if (cmpCapturable.Reduce(strength, attackerOwner) && IsOwnedByEnemyOfPlayer(attackerOwner, target)) 557 557 Engine.PostMessage(target, MT_Attacked, { 558 558 "attacker": this.entity, 559 559 "target": target,