v0.3.0: tweaked sungrass & earthroot, effects now only work on the hero

This commit is contained in:
Evan Debenham 2015-05-25 09:58:13 -04:00 committed by Evan Debenham
parent 39f140a4f5
commit 64f8761b07
2 changed files with 2 additions and 2 deletions

View File

@ -44,7 +44,7 @@ public class Earthroot extends Plant {
public void activate( Char ch ) {
super.activate( ch );
if (ch != null) {
if (ch == Dungeon.hero) {
Buff.affect( ch, Armor.class ).level = ch.HT;
}

View File

@ -42,7 +42,7 @@ public class Sungrass extends Plant {
public void activate( Char ch ) {
super.activate( ch );
if (ch != null) {
if (ch == Dungeon.hero) {
Buff.affect( ch, Health.class ).level = ch.HT;
}