aboutsummaryrefslogtreecommitdiff
path: root/src/server/game/Spells/SpellInfo.cpp
diff options
context:
space:
mode:
authorpete318 <pete318@hotmail.com>2015-02-23 10:52:07 +0000
committerNaios <naios-dev@live.de>2015-06-04 13:35:05 +0200
commitf9cba93985d79ae352a9e6371da1d580a119fb51 (patch)
tree3a5d7d133d168289627869583afa3a47b4bd07d4 /src/server/game/Spells/SpellInfo.cpp
parent239f0b4ad0e83da9d31c8031aa2e50c294bfc913 (diff)
Core/Spells: Support for targetting spells onto in flight units
* This adds support to spell_custom_attr to allow a spell to be cast upon a unit on a taxi/in flight. * This will allow the Issue #11880 with Horde quest Test At Sea (11170) to be corrected. * closes #14235 Signed-off-by: Naios <naios-dev@live.de>
Diffstat (limited to 'src/server/game/Spells/SpellInfo.cpp')
-rw-r--r--src/server/game/Spells/SpellInfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/server/game/Spells/SpellInfo.cpp b/src/server/game/Spells/SpellInfo.cpp
index 75a48e36ded..789b95e3e14 100644
--- a/src/server/game/Spells/SpellInfo.cpp
+++ b/src/server/game/Spells/SpellInfo.cpp
@@ -1614,7 +1614,7 @@ SpellCastResult SpellInfo::CheckTarget(Unit const* caster, WorldObject const* ta
}
// not allow casting on flying player
- if (unitTarget->HasUnitState(UNIT_STATE_IN_FLIGHT))
+ if (unitTarget->HasUnitState(UNIT_STATE_IN_FLIGHT) && !(AttributesCu & SPELL_ATTR0_CU_ALLOW_INFLIGHT_TARGET))
return SPELL_FAILED_BAD_TARGETS;
/* TARGET_UNIT_MASTER gets blocked here for passengers, because the whole idea of this check is to