v3.0.0: fixed various spell errors:
- holy lance not spending charges - guiding light cooldown stacking on itself - recall glyph duration stacking on itself
This commit is contained in:
@@ -725,7 +725,7 @@ public enum Talent {
|
||||
&& hero.hasTalent(RECALL_GLYPH)
|
||||
&& Scroll.class.isAssignableFrom(cls)
|
||||
&& cls != ScrollOfUpgrade.class){
|
||||
Buff.affect(hero, RecallGlyph.UsedGlyphTracker.class, hero.pointsInTalent(RECALL_GLYPH) == 2 ? 300 : 10).item = cls;
|
||||
Buff.prolong(hero, RecallGlyph.UsedGlyphTracker.class, hero.pointsInTalent(RECALL_GLYPH) == 2 ? 300 : 10).item = cls;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -733,7 +733,7 @@ public enum Talent {
|
||||
if (hero.heroClass == HeroClass.CLERIC
|
||||
&& hero.hasTalent(RECALL_GLYPH)
|
||||
&& Runestone.class.isAssignableFrom(cls)){
|
||||
Buff.affect(hero, RecallGlyph.UsedGlyphTracker.class, hero.pointsInTalent(RECALL_GLYPH) == 2 ? 300 : 10).item = cls;
|
||||
Buff.prolong(hero, RecallGlyph.UsedGlyphTracker.class, hero.pointsInTalent(RECALL_GLYPH) == 2 ? 300 : 10).item = cls;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ public class GuidingLight extends TargetedClericSpell {
|
||||
|
||||
onSpellCast(tome, hero);
|
||||
if (hero.subClass == HeroSubClass.PRIEST) {
|
||||
Buff.affect(hero, GuidingLightPriestCooldown.class, 100f);
|
||||
Buff.prolong(hero, GuidingLightPriestCooldown.class, 100f);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -111,6 +111,7 @@ public class HolyLance extends TargetedClericSpell {
|
||||
|
||||
enemy.sprite.burst(0xFFFFFFFF, 10);
|
||||
hero.spendAndNext(1f);
|
||||
onSpellCast(tome, hero);
|
||||
FlavourBuff.affect(hero, LanceCooldown.class, 50f);
|
||||
}
|
||||
});
|
||||
@@ -124,6 +125,7 @@ public class HolyLance extends TargetedClericSpell {
|
||||
public void call() {
|
||||
Splash.at(target, 0xFFFFFFFF, 10);
|
||||
hero.spendAndNext(1f);
|
||||
onSpellCast(tome, hero);
|
||||
FlavourBuff.affect(hero, LanceCooldown.class, 50f);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user