From 89e20ff99939789d4d722e000b1378ff11c86316 Mon Sep 17 00:00:00 2001 From: megamage Date: Mon, 15 Jun 2009 12:34:28 -0500 Subject: [PATCH] *Fix build. --HG-- branch : trunk --- .../scripts/zone/eastern_plaguelands/the_scarlet_enclave.cpp | 1 + src/game/Spell.cpp | 2 +- src/game/Vehicle.h | 2 +- 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 77005fc14c..482a7169ad 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 645c252943..d97bd11842 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 e0473c4556..309e8a5f02 100644 --- a/src/game/Vehicle.h +++ b/src/game/Vehicle.h @@ -35,7 +35,7 @@ struct VehicleSeat typedef std::map SeatMap; -class Vehicle : public Creature +class TRINITY_DLL_SPEC Vehicle : public Creature { public: explicit Vehicle();