[11955] Remove .hover command

You can use .cast 11010 and .unaura 11010 instead

Thanks to stfx for improving patch and porting it for us :)

Signed-off-by: Schmoozerd <schmoozerd@scriptdev2.com>
This commit is contained in:
machiavelli 2012-04-12 23:06:12 +02:00 committed by Schmoozerd
parent b6f6c670ac
commit af6b589041
11 changed files with 11 additions and 35 deletions

View file

@ -8419,14 +8419,6 @@ void Unit::SetSpeedRate(UnitMoveType mtype, float rate, bool forced)
CallForAllControlledUnits(SetSpeedRateHelper(mtype,forced), CONTROLLED_PET|CONTROLLED_GUARDIANS|CONTROLLED_CHARM|CONTROLLED_MINIPET);
}
void Unit::SetHover(bool on)
{
if(on)
CastSpell(this, 11010, true);
else
RemoveAurasDueToSpell(11010);
}
void Unit::SetDeathState(DeathState s)
{
if (s != ALIVE && s!= JUST_ALIVED)