Exiles reach PR Aureon
This commit is contained in:
@@ -501,8 +501,11 @@ public:
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
Unit* target = GetUnitOwner();
|
||||
if (!caster || !target)
|
||||
return;
|
||||
|
||||
Player* player = target->ToPlayer();
|
||||
if (!caster || !target || !player)
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
player->m_Events.AddEventAtOffset(new CrennaRaliaCastEvent(player), 500ms);
|
||||
@@ -512,8 +515,11 @@ public:
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
Unit* target = GetUnitOwner();
|
||||
if (!caster || !target)
|
||||
return;
|
||||
|
||||
Player* player = target->ToPlayer();
|
||||
if (!caster || !target || !player)
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
if (player->IsInAlliance())
|
||||
|
||||
@@ -571,8 +571,11 @@ public:
|
||||
void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
if (!caster)
|
||||
return;
|
||||
|
||||
Player* player = caster->ToPlayer();
|
||||
if (!caster || !player)
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
// Player entered darkmaul citadel entrance area (stairs)
|
||||
@@ -608,8 +611,11 @@ public:
|
||||
void HandleApply(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
if (!caster)
|
||||
return;
|
||||
|
||||
Player* player = caster->ToPlayer();
|
||||
if (!caster || !player)
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
// Player entered darkmaul citadel cooking area
|
||||
|
||||
@@ -599,10 +599,11 @@ public:
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
Unit* target = GetUnitOwner();
|
||||
Creature* creature = caster->ToCreature();
|
||||
if (!caster || !target)
|
||||
return;
|
||||
|
||||
Creature* creature = caster->ToCreature();
|
||||
|
||||
Creature* smallCopter = target->ToCreature();
|
||||
if (!smallCopter)
|
||||
return;
|
||||
@@ -740,10 +741,12 @@ public:
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
Unit* target = GetUnitOwner();
|
||||
Creature* creature = caster->ToCreature();
|
||||
|
||||
if (!caster || !target || !target->IsCreature())
|
||||
return;
|
||||
|
||||
Creature* creature = caster->ToCreature();
|
||||
|
||||
if (creature->GetEntry() != NPC_DARKMAUL_PLAINS_WANDERING_BOAR)
|
||||
return;
|
||||
}
|
||||
@@ -752,9 +755,12 @@ public:
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
Unit* target = GetUnitOwner();
|
||||
if (!caster || !target)
|
||||
return;
|
||||
|
||||
Player* player = caster->ToPlayer();
|
||||
Creature* creature = target->ToCreature();
|
||||
if (!caster || !target || !player || !creature)
|
||||
if (!player || !creature)
|
||||
return;
|
||||
|
||||
caster->ClearChannelObjects();
|
||||
@@ -796,10 +802,11 @@ public:
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
Unit* target = GetExplTargetUnit();
|
||||
Creature* creature = target->ToCreature();
|
||||
|
||||
if (!caster || !target || !target->IsCreature())
|
||||
return;
|
||||
|
||||
Creature* creature = target->ToCreature();
|
||||
if (creature->GetEntry() != NPC_DARKMAUL_PLAINS_WANDERING_BOAR)
|
||||
return;
|
||||
|
||||
@@ -890,8 +897,11 @@ public:
|
||||
void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
Unit* owner = GetUnitOwner();
|
||||
if (!owner)
|
||||
return;
|
||||
|
||||
Player* player = owner->ToPlayer();
|
||||
if (!owner || !player)
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
player->RemoveAura(SPELL_RIDING_GIANT_BOAR2);
|
||||
@@ -921,8 +931,11 @@ public:
|
||||
void HandleRemove(AuraEffect const* /*aurEff*/, AuraEffectHandleModes /*mode*/)
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
if (!caster)
|
||||
return;
|
||||
|
||||
Player* player = caster->ToPlayer();
|
||||
if (!caster || !player)
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
// This spell is universal so i made my changes to Exile's Reach Only
|
||||
@@ -1010,9 +1023,15 @@ public:
|
||||
void HandleOnCast()
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
if (!caster)
|
||||
return;
|
||||
|
||||
Player* player = caster->ToPlayer();
|
||||
if (!player)
|
||||
return;
|
||||
|
||||
Creature* giantBoar = player->GetVehicleCreatureBase();
|
||||
if (!caster || !player || !giantBoar)
|
||||
if (!giantBoar)
|
||||
return;
|
||||
|
||||
player->m_Events.AddEventAtOffset(new LeaveGiantBoarEvent(player), 5s);
|
||||
|
||||
Reference in New Issue
Block a user