mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-16 02:20:27 +00:00
feat(Core/Misc): implement ObjectGuid class (port from TC) (#4885)
This commit is contained in:
@@ -421,7 +421,7 @@ public:
|
||||
Player* player = who->ToPlayer();
|
||||
if (player->HasItemCount(ITEM_PORTABLE_BREWFEST_KEG)) // portable brewfest keg
|
||||
{
|
||||
player->KilledMonsterCredit(KEG_KILL_CREDIT, 0);
|
||||
player->KilledMonsterCredit(KEG_KILL_CREDIT);
|
||||
player->CastSpell(me, SPELL_THROW_KEG, true); // throw keg
|
||||
player->DestroyItemCount(ITEM_PORTABLE_BREWFEST_KEG, 1, true);
|
||||
|
||||
@@ -539,7 +539,7 @@ public:
|
||||
QuestStatusData& q_status = itr->second;
|
||||
if (q_status.CreatureOrGOCount[me->GetEntry() - 24202] == 0)
|
||||
{
|
||||
player->KilledMonsterCredit(me->GetEntry(), 0);
|
||||
player->KilledMonsterCredit(me->GetEntry());
|
||||
player->MonsterSay(GetTextFor(me->GetEntry(), quest).c_str(), LANG_UNIVERSAL, player);
|
||||
}
|
||||
}
|
||||
@@ -949,7 +949,7 @@ public:
|
||||
}
|
||||
|
||||
uint32 timer;
|
||||
uint64 targetGUID;
|
||||
ObjectGuid targetGUID;
|
||||
void EnterCombat(Unit*) override {}
|
||||
void MoveInLineOfSight(Unit*) override {}
|
||||
void AttackStart(Unit*) override {}
|
||||
@@ -1004,7 +1004,7 @@ public:
|
||||
void Reset() override
|
||||
{
|
||||
timer = 0;
|
||||
targetGUID = 0;
|
||||
targetGUID.Clear();
|
||||
me->SetWalk(true);
|
||||
FindNextKeg();
|
||||
me->ApplySpellImmune(SPELL_ATTACK_KEG, IMMUNITY_ID, SPELL_ATTACK_KEG, true);
|
||||
@@ -1225,7 +1225,7 @@ public:
|
||||
privateLevel++;
|
||||
}
|
||||
else if (questTick++ > 3)
|
||||
caster->ToPlayer()->KilledMonsterCredit(CREDIT_TROT, 0);
|
||||
caster->ToPlayer()->KilledMonsterCredit(CREDIT_TROT);
|
||||
break;
|
||||
case 2:
|
||||
// Two - three clicks to maintains speed, less to decrease, more to increase
|
||||
@@ -1242,7 +1242,7 @@ public:
|
||||
questTick = 0;
|
||||
}
|
||||
else if (questTick++ > 3)
|
||||
caster->ToPlayer()->KilledMonsterCredit(CREDIT_CANTER, 0);
|
||||
caster->ToPlayer()->KilledMonsterCredit(CREDIT_CANTER);
|
||||
break;
|
||||
case 3:
|
||||
// Four or more clicks to maintains speed, less to decrease
|
||||
@@ -1253,7 +1253,7 @@ public:
|
||||
questTick = 0;
|
||||
}
|
||||
else if (questTick++ > 3)
|
||||
caster->ToPlayer()->KilledMonsterCredit(CREDIT_GALLOP, 0);
|
||||
caster->ToPlayer()->KilledMonsterCredit(CREDIT_GALLOP);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -1463,7 +1463,7 @@ public:
|
||||
{
|
||||
player->DestroyItemCount(itemCaster->GetEntry(), 1, true);
|
||||
GetSpell()->m_CastItem = nullptr;
|
||||
GetSpell()->m_castItemGUID = 0;
|
||||
GetSpell()->m_castItemGUID.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1530,7 +1530,7 @@ public:
|
||||
{
|
||||
player->DestroyItemCount(itemCaster->GetEntry(), 1, true);
|
||||
GetSpell()->m_CastItem = nullptr;
|
||||
GetSpell()->m_castItemGUID = 0;
|
||||
GetSpell()->m_castItemGUID.Clear();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user