mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-25 19:31:59 +01:00
Merge branch 'master' of github.com:TrinityCore/TrinityCore into 4.3.4
Conflicts: src/server/game/Spells/Auras/SpellAuraEffects.cpp
This commit is contained in:
@@ -854,7 +854,6 @@ class npc_halion_controller : public CreatureScript
|
||||
{
|
||||
if (Creature* halion = ObjectAccessor::GetCreature(*me, _instance->GetData64(itr)))
|
||||
{
|
||||
RemoveCorporeality(halion, itr == DATA_TWILIGHT_HALION);
|
||||
halion->CastSpell(halion, GetSpell(_materialCorporealityValue, itr == DATA_TWILIGHT_HALION), true);
|
||||
|
||||
if (itr == DATA_TWILIGHT_HALION)
|
||||
@@ -865,19 +864,6 @@ class npc_halion_controller : public CreatureScript
|
||||
}
|
||||
}
|
||||
|
||||
void RemoveCorporeality(Creature* who, bool isTwilight = false)
|
||||
{
|
||||
for (uint8 i = 0; i < MAX_CORPOREALITY_STATE; i++)
|
||||
{
|
||||
uint32 spellID = (isTwilight ? _corporealityReference[i].twilightRealmSpell : _corporealityReference[i].materialRealmSpell);
|
||||
if (who->HasAura(spellID))
|
||||
{
|
||||
who->RemoveAurasDueToSpell(spellID);
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
uint32 GetSpell(uint8 pctValue, bool isTwilight = false) const
|
||||
{
|
||||
CorporealityEntry entry = _corporealityReference[pctValue];
|
||||
|
||||
Reference in New Issue
Block a user