mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-26 20:26:23 +01:00
Use MassiveCore setDamage
This commit is contained in:
parent
c81d7d8794
commit
91bdeb4f3c
@ -960,7 +960,7 @@ public class EngineMain extends EngineAbstract
|
||||
if (damage > 0.0 && udefender.hasFaction() && ownTerritory && MConf.get().territoryShieldFactor > 0)
|
||||
{
|
||||
double newDamage = damage * (1D - MConf.get().territoryShieldFactor);
|
||||
event.setDamage(newDamage);
|
||||
MUtil.setDamage(event, newDamage);
|
||||
|
||||
// Send message
|
||||
if (notify)
|
||||
|
Loading…
Reference in New Issue
Block a user