diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Buff.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Buff.java index 23b6bfcb5..93d474eb4 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Buff.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/Buff.java @@ -27,9 +27,9 @@ public class Buff extends Actor { public Char target; - public static HashSet> resistances = new HashSet>(); + public HashSet> resistances = new HashSet>(); - public static HashSet> immunities = new HashSet>(); + public HashSet> immunities = new HashSet>(); public boolean attachTo( Char target ) { diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/EarthImbue.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/EarthImbue.java index c807ff753..006bd6110 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/EarthImbue.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/EarthImbue.java @@ -30,7 +30,7 @@ public class EarthImbue extends FlavourBuff { return "Imbued with Earth"; } - static { + { immunities.add( Paralysis.class ); immunities.add( Roots.class ); immunities.add( Slow.class ); diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/FireImbue.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/FireImbue.java index 9c8d73664..96ef90101 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/FireImbue.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/FireImbue.java @@ -71,7 +71,7 @@ public class FireImbue extends Buff { return "Imbued with Fire"; } - static { + { immunities.add( Burning.class ); } } diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/GasesImmunity.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/GasesImmunity.java index eecb0bef2..f249509b0 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/GasesImmunity.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/GasesImmunity.java @@ -39,7 +39,7 @@ public class GasesImmunity extends FlavourBuff { return "Immune to gases"; } - static { + { immunities.add( ParalyticGas.class ); immunities.add( ToxicGas.class ); immunities.add( ConfusionGas.class ); diff --git a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ToxicImbue.java b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ToxicImbue.java index 3fc4b9948..0b6dea934 100644 --- a/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ToxicImbue.java +++ b/src/com/shatteredpixel/shatteredpixeldungeon/actors/buffs/ToxicImbue.java @@ -59,7 +59,7 @@ public class ToxicImbue extends Buff { return "Imbued with Toxicity"; } - static { + { immunities.add( ToxicGas.class ); immunities.add( Poison.class ); }