diff options
author | Shauren <shauren.trinity@gmail.com> | 2012-12-31 17:58:21 +0100 |
---|---|---|
committer | Shauren <shauren.trinity@gmail.com> | 2012-12-31 17:58:21 +0100 |
commit | c021bff594b3f3a6467a466e9324a77a1bcfdc38 (patch) | |
tree | a27cc03ea8cf9970452de20e9abe97011a575e2e /src | |
parent | 7ef2c1e062bf7f55c05734afbde5223c5dbd7758 (diff) |
Core/Vehicles: Fixed basepoints used when ride vehicle aura is created for !IsInMap case
Diffstat (limited to 'src')
-rw-r--r-- | src/server/game/Entities/Unit/Unit.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp index d052fe1bfb8..c613bef3305 100644 --- a/src/server/game/Entities/Unit/Unit.cpp +++ b/src/server/game/Entities/Unit/Unit.cpp @@ -17067,8 +17067,12 @@ bool Unit::HandleSpellClick(Unit* clicker, int8 seatId) caster->CastCustomSpell(itr->second.spellId, SpellValueMod(SPELLVALUE_BASE_POINT0+i), seatId + 1, target, GetVehicleKit() ? TRIGGERED_IGNORE_CASTER_MOUNTED_OR_ON_VEHICLE : TRIGGERED_NONE, NULL, NULL, origCasterGUID); else // This can happen during Player::_LoadAuras { - int32 bp0 = seatId; - Aura::TryRefreshStackOrCreate(spellEntry, MAX_EFFECT_MASK, this, clicker, &bp0, NULL, origCasterGUID); + int32 bp0[MAX_SPELL_EFFECTS]; + for (uint32 i = 0; i < MAX_SPELL_EFFECTS; ++i) + bp0[i] = spellEntry->Effects[i].BasePoints; + + bp0[i] = seatId; + Aura::TryRefreshStackOrCreate(spellEntry, MAX_EFFECT_MASK, this, clicker, bp0, NULL, origCasterGUID); } } else |