Core/Scripts: Fix Blood summon position
Port From (https://github.com/TrinityCore/TrinityCore/commit/b86a66c5be93b594fdda045e860cc1ccf16cee82)
This commit is contained in:
@@ -517,7 +517,7 @@ namespace Scripts.Spells.Generic
|
||||
}
|
||||
}
|
||||
|
||||
[Script]
|
||||
[Script] // 46221 - Animal Blood
|
||||
class spell_gen_animal_blood : AuraScript
|
||||
{
|
||||
public override bool Validate(SpellInfo spellInfo)
|
||||
@@ -548,6 +548,25 @@ namespace Scripts.Spells.Generic
|
||||
}
|
||||
}
|
||||
|
||||
[Script] // 63471 -Spawn Blood Pool
|
||||
class spell_spawn_blood_pool : SpellScript
|
||||
{
|
||||
void SetDest(ref SpellDestination dest)
|
||||
{
|
||||
Unit caster = GetCaster();
|
||||
Position summonPos = caster.GetPosition();
|
||||
LiquidData liquidStatus;
|
||||
if (caster.GetMap().GetLiquidStatus(caster.GetPhaseShift(), caster.GetPositionX(), caster.GetPositionY(), caster.GetPositionZ(), LiquidHeaderTypeFlags.AllLiquids, out liquidStatus, caster.GetCollisionHeight()) != ZLiquidStatus.NoWater)
|
||||
summonPos.posZ = liquidStatus.level;
|
||||
dest.Relocate(summonPos);
|
||||
}
|
||||
|
||||
public override void Register()
|
||||
{
|
||||
OnDestinationTargetSelect.Add(new DestinationTargetSelectHandler(SetDest, 0, Targets.DestCaster));
|
||||
}
|
||||
}
|
||||
|
||||
[Script]
|
||||
class spell_gen_arcane_charge : SpellScript
|
||||
{
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
DELETE FROM `spell_script_names` WHERE `ScriptName`='spell_spawn_blood_pool';
|
||||
INSERT INTO `spell_script_names` (`spell_id`, `ScriptName`) VALUES
|
||||
(63471, 'spell_spawn_blood_pool');
|
||||
Reference in New Issue
Block a user