v3.0.0: fixed enchants/glyphs not working with body form in some cases
This commit is contained in:
@@ -693,6 +693,10 @@ public class Armor extends EquipableItem {
|
||||
&& owner.buff(HolyWard.HolyArmBuff.class) != null
|
||||
&& ((Hero) owner).subClass != HeroSubClass.PALADIN){
|
||||
return false;
|
||||
} else if (owner.buff(BodyForm.BodyFormBuff.class) != null
|
||||
&& owner.buff(BodyForm.BodyFormBuff.class).glyph() != null
|
||||
&& owner.buff(BodyForm.BodyFormBuff.class).glyph().getClass().equals(type)){
|
||||
return true;
|
||||
} else {
|
||||
return glyph.getClass() == type;
|
||||
}
|
||||
|
||||
@@ -457,8 +457,12 @@ abstract public class Weapon extends KindOfWeapon {
|
||||
&& owner instanceof Hero
|
||||
&& isEquipped((Hero) owner)
|
||||
&& owner.buff(HolyWeapon.HolyWepBuff.class) != null
|
||||
&& ((Hero) owner).subClass != HeroSubClass.PALADIN){
|
||||
&& ((Hero) owner).subClass != HeroSubClass.PALADIN) {
|
||||
return false;
|
||||
} else if (owner.buff(BodyForm.BodyFormBuff.class) != null
|
||||
&& owner.buff(BodyForm.BodyFormBuff.class).enchant() != null
|
||||
&& owner.buff(BodyForm.BodyFormBuff.class).enchant().getClass().equals(type)){
|
||||
return true;
|
||||
} else {
|
||||
return enchantment.getClass() == type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user