mirror of
https://github.com/araxiaonline/TrinityCore.git
synced 2026-06-15 04:32:35 -04:00
Scripts: replace some SetOrientation() calls with spline packets and some random changes
This commit is contained in:
@@ -525,9 +525,9 @@ void SmartScript::ProcessAction(SmartScriptHolder& e, Unit* unit, uint32 var0, u
|
||||
SpellInfo const* spellInfo = sSpellMgr->GetSpellInfo(e.action.cast.spell);
|
||||
int32 mana = me->GetPower(POWER_MANA);
|
||||
|
||||
if (me->GetDistance((*itr)->ToUnit()) > spellInfo->GetMaxRange(true) ||
|
||||
me->GetDistance((*itr)->ToUnit()) < spellInfo->GetMinRange(true) ||
|
||||
!me->ToUnit()->IsWithinLOSInMap((*itr)->ToUnit()) ||
|
||||
if (me->GetDistance(*itr) > spellInfo->GetMaxRange(true) ||
|
||||
me->GetDistance(*itr) < spellInfo->GetMinRange(true) ||
|
||||
!me->IsWithinLOSInMap(*itr) ||
|
||||
mana < spellInfo->CalcPowerCost(me, spellInfo->GetSchoolMask()))
|
||||
_allowMove = true;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user