v3.0.1: holy wep and ward extension now caps at 100 turns
This commit is contained in:
+2
-2
@@ -88,10 +88,10 @@ public abstract class ClericSpell {
|
|||||||
Talent.onArtifactUsed(hero);
|
Talent.onArtifactUsed(hero);
|
||||||
if (hero.subClass == HeroSubClass.PALADIN){
|
if (hero.subClass == HeroSubClass.PALADIN){
|
||||||
if (this != HolyWeapon.INSTANCE && hero.buff(HolyWeapon.HolyWepBuff.class) != null){
|
if (this != HolyWeapon.INSTANCE && hero.buff(HolyWeapon.HolyWepBuff.class) != null){
|
||||||
Buff.affect(hero, HolyWeapon.HolyWepBuff.class, 10*chargeUse(hero));
|
hero.buff(HolyWeapon.HolyWepBuff.class).extend(10*chargeUse(hero));
|
||||||
}
|
}
|
||||||
if (this != HolyWard.INSTANCE && hero.buff(HolyWard.HolyArmBuff.class) != null){
|
if (this != HolyWard.INSTANCE && hero.buff(HolyWard.HolyArmBuff.class) != null){
|
||||||
Buff.affect(hero, HolyWard.HolyArmBuff.class, 10*chargeUse(hero));
|
hero.buff(HolyWard.HolyArmBuff.class).extend(10*chargeUse(hero));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+8
@@ -101,6 +101,14 @@ public class HolyWard extends ClericSpell {
|
|||||||
super.detach();
|
super.detach();
|
||||||
Item.updateQuickslot();
|
Item.updateQuickslot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void extend(float extension){
|
||||||
|
if (cooldown()+extension <= 2*DURATION){
|
||||||
|
spend(extension);
|
||||||
|
} else {
|
||||||
|
postpone(2*DURATION);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
+8
@@ -106,6 +106,14 @@ public class HolyWeapon extends ClericSpell {
|
|||||||
super.detach();
|
super.detach();
|
||||||
Item.updateQuickslot();
|
Item.updateQuickslot();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public void extend(float extension){
|
||||||
|
if (cooldown()+extension <= 2*DURATION){
|
||||||
|
spend(extension);
|
||||||
|
} else {
|
||||||
|
postpone(2*DURATION);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user