Core/Vehicles: Fixed basepoints used when ride vehicle aura is created for !IsInMap case

This commit is contained in:
Shauren
2012-12-31 17:58:21 +01:00
parent 7ef2c1e062
commit c021bff594

View File

@@ -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