Scripts/Player: Add OnMapChanged to PlayerScripts (after map changed)

Core/Dungeon Finder: Use OnMapChanged script to cast/remove Luck of the draw
- Also move code to force party update to LfgPlayerScript
- Remove some obsolete Lfg code after recent commits
This commit is contained in:
Spp committed 2013-02-04 16:52:43 +01:00
1 parent 30e1516387
commit 61979f8591
10 files changed
+29 -103

No files matched your search

-4
View File
@@ -26,7 +26,6 @@
#include "GridStates.h"
#include "Group.h"
#include "InstanceScript.h"
#include "LFGMgr.h"
#include "MapInstanced.h"
#include "MapManager.h"
#include "ObjectAccessor.h"
@@ -2484,9 +2483,6 @@ bool InstanceMap::AddPlayerToMap(Player* player)
ASSERT(playerBind->save == mapSave);
}
}
if (group && group->isLFGGroup())
player->CastSpell(player, lfg::LFG_SPELL_LUCK_OF_THE_DRAW, true);
}
// for normal instances cancel the reset schedule when the