public void RemoveBattlefieldEffect(Effect e)
        {
            if (!battlefieldEffects.ContainsKey(e.Name)) return;

            if (lua.DoFile("scripts/" + e.Name + ".lua") == null)
            {
                LuaFunction onExit = lua.GetFunction("OnExit");
                if (onExit != null)
                {
                    onExit.Call();
                }
                battlefieldEffects.Remove(e.Name);
            } 
        }
        public void AddBattlefieldEffect(Effect e)
        {
            if (battlefieldEffects.ContainsKey(e.Name)) return;

            if (lua.DoFile("scripts/" + e.Name + ".lua") == null)
            {
                LuaFunction onEnter = lua.GetFunction("OnEnter");
                if (onEnter != null)
                {
                    onEnter.Call();
                }
                battlefieldEffects.Add(e.Name, e);
            } 
        }