Remove DeleteBonesFromWorld method from corpse and fix build for TC

This commit is contained in:
Rochet2
2015-11-09 17:56:17 +02:00
parent e41fed0c0d
commit c94ef51cbe
5 changed files with 22 additions and 17 deletions

View File

@@ -592,7 +592,10 @@ namespace LuaCreature
uint32 spell = Eluna::CHECKVAL<uint32>(L, 2);
#ifdef TRINITY
Eluna::Push(L, creature->GetSpellHistory()->GetRemainingCooldown(spell));
if (SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(spell))
Eluna::Push(L, creature->GetSpellHistory()->GetRemainingCooldown(spellInfo));
else
Eluna::Push(L, 0);
#else
Eluna::Push(L, creature->GetCreatureSpellCooldownDelay(spell));
#endif