mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Fix mangos build
This commit is contained in:
@@ -9,7 +9,11 @@
|
|||||||
|
|
||||||
#include "ElunaUtility.h"
|
#include "ElunaUtility.h"
|
||||||
#include "Common.h"
|
#include "Common.h"
|
||||||
|
#ifdef TRINITY
|
||||||
#include "Random.h"
|
#include "Random.h"
|
||||||
|
#else
|
||||||
|
#include "Util.h"
|
||||||
|
#endif
|
||||||
#include <map>
|
#include <map>
|
||||||
|
|
||||||
#ifdef TRINITY
|
#ifdef TRINITY
|
||||||
|
|||||||
@@ -3606,7 +3606,9 @@ namespace LuaPlayer
|
|||||||
uint32 rank = Eluna::CHECKVAL<uint32>(L, 3);
|
uint32 rank = Eluna::CHECKVAL<uint32>(L, 3);
|
||||||
|
|
||||||
player->LearnTalent(id, rank);
|
player->LearnTalent(id, rank);
|
||||||
|
#if (!defined(TBC) && !defined(CLASSIC))
|
||||||
player->SendTalentsInfoData(false);
|
player->SendTalentsInfoData(false);
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef TRINITY
|
#ifndef TRINITY
|
||||||
// if player has a pet, update owner talent auras
|
// if player has a pet, update owner talent auras
|
||||||
|
|||||||
@@ -2776,10 +2776,11 @@ namespace LuaUnit
|
|||||||
#else
|
#else
|
||||||
#ifdef CMANGOS
|
#ifdef CMANGOS
|
||||||
SpellEntry const* spellEntry = GetSpellStore()->LookupEntry<SpellEntry>(spell);
|
SpellEntry const* spellEntry = GetSpellStore()->LookupEntry<SpellEntry>(spell);
|
||||||
|
unit->AddThreat(victim, threat, false, spellEntry ? spellEntry->SchoolMask : SPELL_SCHOOL_MASK_NONE, spellEntry);
|
||||||
#else
|
#else
|
||||||
SpellEntry const* spellEntry = sSpellStore.LookupEntry(spell);
|
SpellEntry const* spellEntry = sSpellStore.LookupEntry(spell);
|
||||||
|
unit->AddThreat(victim, threat, false, spellEntry ? GetSchoolMask(spellEntry->School) : SPELL_SCHOOL_MASK_NONE, spellEntry);
|
||||||
#endif
|
#endif
|
||||||
unit->AddThreat(victim, threat, false, spellEntry ? spellEntry->SchoolMask : SPELL_SCHOOL_MASK_NONE, spellEntry);
|
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user