Core/Misc: fixed build

This commit is contained in:
Ovahlord committed 2020-07-22 18:35:41 +02:00
1 parent 47ef91c23d
commit de6a514ec5
11 files changed
+28 -28

No files matched your search

+1 -1
View File
@@ -997,7 +997,7 @@ public:
for (auto const& outerPair : redirectRegistry) // (spellId, (guid, pct))
{
SpellInfo const* const spell = sSpellMgr->GetSpellInfo(outerPair.first);
handler->PSendSysMessage(" |-- #%06u %s (%zu entries):", outerPair.first, spell ? spell->SpellName[0] : "<unknown>", outerPair.second.size());
handler->PSendSysMessage(" |-- #%06u %s (%zu entries):", outerPair.first, spell ? spell->SpellName : "<unknown>", outerPair.second.size());
for (auto const& innerPair : outerPair.second) // (guid, pct)
{
Unit* unit = ObjectAccessor::GetUnit(*target, innerPair.first);
+8 -2
View File
@@ -207,8 +207,14 @@ public:
}
//Teleport group to given game_tele.entry
static bool HandleTeleGroupCommand(ChatHandler* handler, GameTele const* tele)
static bool HandleTeleGroupCommand(ChatHandler* handler, char const* args)
{
if (!*args)
return false;
// id, or string, or [name] Shift-click form |color|Htele:id|h[name]|h|r
GameTele const* tele = handler->extractGameTeleFromLink((char*)args);
if (!tele)
{
handler->SendSysMessage(LANG_COMMAND_TELE_NOTFOUND);
@@ -285,7 +291,7 @@ public:
return true;
}
static bool HandleTeleCommand(ChatHandler* handler, GameTele const* tele)
static bool HandleTeleCommand(ChatHandler* handler, char const* args)
{
if (!*args)
return false;
@@ -182,7 +182,7 @@ class npc_harbinger_of_flame : public CreatureScript
void JustEngagedWith(Unit* /*target*/) override
{
if (Creature* bird = ObjectAccessor::GetCreature(*me, me->GetChannelObjectGuid()))
DoZoneInCombat(bird, 200.0f);
DoZoneInCombat(bird);
me->InterruptSpell(CURRENT_CHANNELED_SPELL);
_events.Reset();
@@ -30,7 +30,7 @@ class DelayedAttackStartEvent : public BasicEvent
bool Execute(uint64 /*e_time*/, uint32 /*p_time*/) override
{
_owner->AI()->DoZoneInCombat(_owner, 200.0f);
_owner->AI()->DoZoneInCombat(_owner);
return true;
}
@@ -608,7 +608,7 @@ class boss_razorscale : public CreatureScript
case ACTION_EVENT_START:
me->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_NON_ATTACKABLE | UNIT_FLAG_NOT_SELECTABLE);
me->SetReactState(REACT_AGGRESSIVE);
DoZoneInCombat(me, 150.0f);
DoZoneInCombat(me);
break;
}
}
+9 -1
View File
@@ -1713,7 +1713,15 @@ class npc_brewfest_reveler : public CreatureScript
enum TrainingDummy
{
NPC_ADVANCED_TARGET_DUMMY = 2674,
NPC_TARGET_DUMMY = 2673
NPC_TARGET_DUMMY = 2673,
NPC_SPELL_PRACTICE_CREDIT = 44175,
SPELL_CHARGE = 100,
SPELL_JUDGEMENT = 29271,
SPELL_STEADY_SHOT = 56641,
SPELL_EVISCERATE = 2098,
SPELL_PRIMAL_STRIKE = 73899,
SPELL_IMMOLATE = 348,
SPELL_ARCANE_MISSILES = 5143,
};
class npc_training_dummy : public CreatureScript