aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-06-15 12:34:28 -0500
committermegamage <none@none>2009-06-15 12:34:28 -0500
commit89e20ff99939789d4d722e000b1378ff11c86316 (patch)
tree5c9198b216f83281e2d4ba791f01888ae56a4608 /src
parent9055f25030e6de924346d92e6b588e8265918831 (diff)
*Fix build.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp1
-rw-r--r--src/game/Spell.cpp2
-rw-r--r--src/game/Vehicle.h2
3 files changed, 3 insertions, 2 deletions
diff --git a/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp b/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp
index 77005fc14c6..482a7169ad3 100644
--- a/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp
+++ b/src/bindings/scripts/scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp
@@ -17,6 +17,7 @@
*/
#include "precompiled.h"
+#include "Vehicle.h"
#define GCD_CAST 1
diff --git a/src/game/Spell.cpp b/src/game/Spell.cpp
index 645c2529433..d97bd11842d 100644
--- a/src/game/Spell.cpp
+++ b/src/game/Spell.cpp
@@ -1208,7 +1208,7 @@ SpellMissInfo Spell::DoSpellHitOnUnit(Unit *unit, const uint32 effectMask)
if(m_spellInfo->speed > 0.0f && unit == m_targets.getUnitTarget()
&& (unit->HasAuraType(SPELL_AURA_MOD_INVISIBILITY)
|| unit->HasAuraTypeWithFamilyFlags(SPELL_AURA_MOD_STEALTH, SPELLFAMILY_ROGUE, SPELLFAMILYFLAG_ROGUE_VANISH))
- && !unit->isVisibleForOrDetect(m_caster, true))
+ && !m_caster->canSeeOrDetect(unit, true))
{
// that was causing CombatLog errors
// return SPELL_MISS_EVADE;
diff --git a/src/game/Vehicle.h b/src/game/Vehicle.h
index e0473c45560..309e8a5f02c 100644
--- a/src/game/Vehicle.h
+++ b/src/game/Vehicle.h
@@ -35,7 +35,7 @@ struct VehicleSeat
typedef std::map<int8, VehicleSeat> SeatMap;
-class Vehicle : public Creature
+class TRINITY_DLL_SPEC Vehicle : public Creature
{
public:
explicit Vehicle();