v3.0.0: fixed trinity applying enchants to thrown weapons
This commit is contained in:
@@ -64,6 +64,7 @@ import com.shatteredpixel.shatteredpixeldungeon.items.weapon.enchantments.Projec
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.enchantments.Shocking;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.enchantments.Unstable;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.enchantments.Vampiric;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.melee.MeleeWeapon;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.melee.RunicBlade;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.items.weapon.melee.Scimitar;
|
||||
import com.shatteredpixel.shatteredpixeldungeon.journal.Catalog;
|
||||
@@ -123,9 +124,8 @@ abstract public class Weapon extends KindOfWeapon {
|
||||
boolean becameAlly = false;
|
||||
boolean wasAlly = defender.alignment == Char.Alignment.ALLY;
|
||||
if (attacker.buff(MagicImmune.class) == null) {
|
||||
//TODO body form
|
||||
Enchantment trinityEnchant = null;
|
||||
if (Dungeon.hero.buff(BodyForm.BodyFormBuff.class) != null){
|
||||
if (Dungeon.hero.buff(BodyForm.BodyFormBuff.class) != null && this instanceof MeleeWeapon){
|
||||
trinityEnchant = Dungeon.hero.buff(BodyForm.BodyFormBuff.class).enchant();
|
||||
if (enchantment != null && trinityEnchant != null && trinityEnchant.getClass() == enchantment.getClass()){
|
||||
trinityEnchant = null;
|
||||
|
||||
Reference in New Issue
Block a user