mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-17 19:05:42 +00:00
feat(Core/Creature): Implement c_t_r & c_t_s (#4359)
This commit is contained in:
@@ -482,7 +482,7 @@ public:
|
||||
for (uint8 i = SPELL_SCHOOL_HOLY; i < MAX_SPELL_SCHOOL; ++i)
|
||||
cInfo->resistance[i] = fields[42 + i - 1].GetUInt16();
|
||||
|
||||
for (uint8 i = 0; i < CREATURE_MAX_SPELLS; ++i)
|
||||
for (uint8 i = 0; i < MAX_CREATURE_SPELLS; ++i)
|
||||
cInfo->spells[i] = fields[48 + i].GetUInt32();
|
||||
|
||||
cInfo->PetSpellDataId = fields[56].GetUInt32();
|
||||
|
||||
@@ -57,7 +57,7 @@ public:
|
||||
{
|
||||
player->KilledMonsterCredit(cr->GetDisplayId() == NPC_SOWAW_WATER_MODEL ? 29008 : 29009, 0);
|
||||
CreatureTemplate const* ct = sObjectMgr->GetCreatureTemplate(cr->GetDisplayId() == NPC_SOWAW_WIND_MODEL ? NPC_SOWAW_WIND_ELEMENTAL : NPC_SOWAW_WATER_ELEMENTAL);
|
||||
for (uint8 i = 0; i < CREATURE_MAX_SPELLS; ++i)
|
||||
for (uint8 i = 0; i < MAX_CREATURE_SPELLS; ++i)
|
||||
cr->m_spells[i] = ct->spells[i];
|
||||
|
||||
player->VehicleSpellInitialize();
|
||||
|
||||
@@ -650,7 +650,7 @@ public:
|
||||
caster->ApplySpellImmune(SPELL_COLOSSUS_GROUND_SLAM, IMMUNITY_ID, SPELL_COLOSSUS_GROUND_SLAM, true);
|
||||
caster->RemoveFlag(UNIT_FIELD_FLAGS, UNIT_FLAG_DISABLE_MOVE);
|
||||
caster->SetControlled(false, UNIT_STATE_ROOT);
|
||||
for (uint8 i = 0; i < CREATURE_MAX_SPELLS; ++i)
|
||||
for (uint8 i = 0; i < MAX_CREATURE_SPELLS; ++i)
|
||||
caster->m_spells[i] = 0;
|
||||
|
||||
caster->m_spells[0] = SPELL_JORMUNGAR_EMERGE;
|
||||
@@ -663,7 +663,7 @@ public:
|
||||
caster->SetControlled(true, UNIT_STATE_ROOT);
|
||||
|
||||
if (CreatureTemplate const* ct = sObjectMgr->GetCreatureTemplate(caster->GetEntry()))
|
||||
for (uint8 i = 0; i < CREATURE_MAX_SPELLS; ++i)
|
||||
for (uint8 i = 0; i < MAX_CREATURE_SPELLS; ++i)
|
||||
caster->m_spells[i] = ct->spells[i];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user