public override void Use(Unit user) { if (user.UnitSide != UnitSides.Good) user.CastEffect(ViscousSlime, user); base.Use(user); }
/// <summary> /// Ovverrides <see cref="GridObject.Use"/>. /// </summary> public override void Use(Unit user) { if (!user.IsVisible || !user.IsAlive) return; if (!bonusEffect.IsOpen) { if (user.UnitType == UnitTypes.Slug) ((Slug)user).CollectHiddenBonus(bonusEffect.EffectID); else return; } else { user.CastEffect(bonusEffect.EffectID, user); } base.Use(user); }