Skip to content

Commit

Permalink
[10766] Allow AURA_FORCE_MOVE_FORWARD to work on creatures and vehicl…
Browse files Browse the repository at this point in the history
…es. For example, it fixes spell [68284]

Signed-off-by: Ambal <pogrebniak@gala.net>
  • Loading branch information
zergtmn authored and Ambal committed Nov 21, 2010
1 parent ea90069 commit 08858b6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions src/game/SpellAuras.cpp
Expand Up @@ -291,7 +291,7 @@ pAuraHandler AuraHandler[TOTAL_AURAS]=
&Aura::HandleModSpellHealingPercentFromAttackPower, //238 SPELL_AURA_MOD_SPELL_HEALING_OF_ATTACK_POWER implemented in Unit::SpellBaseHealingBonusDone
&Aura::HandleAuraModScale, //239 SPELL_AURA_MOD_SCALE_2 only in Noggenfogger Elixir (16595) before 2.3.0 aura 61
&Aura::HandleAuraModExpertise, //240 SPELL_AURA_MOD_EXPERTISE
&Aura::HandleForceMoveForward, //241 Forces the player to move forward
&Aura::HandleForceMoveForward, //241 Forces the caster to move forward
&Aura::HandleUnused, //242 SPELL_AURA_MOD_SPELL_DAMAGE_FROM_HEALING (only 2 test spels in 3.2.2a)
&Aura::HandleNULL, //243 faction reaction override spells
&Aura::HandleComprehendLanguage, //244 SPELL_AURA_COMPREHEND_LANGUAGE
Expand Down Expand Up @@ -6192,8 +6192,9 @@ void Aura::HandleModRatingFromStat(bool apply, bool Real)

void Aura::HandleForceMoveForward(bool apply, bool Real)
{
if(!Real || GetTarget()->GetTypeId() != TYPEID_PLAYER)
if(!Real)
return;

if(apply)
GetTarget()->SetFlag(UNIT_FIELD_FLAGS_2, UNIT_FLAG2_FORCE_MOVE);
else
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10765"
#define REVISION_NR "10766"
#endif // __REVISION_NR_H__

0 comments on commit 08858b6

Please sign in to comment.