mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-11-30 06:03:59 +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)
|
if (damage > 0.0 && udefender.hasFaction() && ownTerritory && MConf.get().territoryShieldFactor > 0)
|
||||||
{
|
{
|
||||||
double newDamage = damage * (1D - MConf.get().territoryShieldFactor);
|
double newDamage = damage * (1D - MConf.get().territoryShieldFactor);
|
||||||
event.setDamage(newDamage);
|
MUtil.setDamage(event, newDamage);
|
||||||
|
|
||||||
// Send message
|
// Send message
|
||||||
if (notify)
|
if (notify)
|
||||||
|
Loading…
Reference in New Issue
Block a user