diff options
| author | QAston <none@none> | 2009-04-06 23:27:13 +0200 |
|---|---|---|
| committer | QAston <none@none> | 2009-04-06 23:27:13 +0200 |
| commit | 6375f8fc8ce0113edbb3a8798bc6cf0a9b9ff014 (patch) | |
| tree | 559bd341d2021e699bf277a472faaf4b02aec5ce /src/game/Player.cpp | |
| parent | 81ef5e632fcfe9a565eebfea9556bde78c0a22e3 (diff) | |
*Set aura remove by expire only for expired auras
--HG--
branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
| -rw-r--r-- | src/game/Player.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp index e0f2a162b8d..41b32327395 100644 --- a/src/game/Player.cpp +++ b/src/game/Player.cpp @@ -15835,7 +15835,7 @@ void Player::_SaveAuras() if (spellInfo->Effect[i] == SPELL_AURA_MOD_SHAPESHIFT || spellInfo->Effect[i] == SPELL_AURA_MOD_STEALTH ) continue; - uint32 amounts[MAX_SPELL_EFFECTS]; + int32 amounts[MAX_SPELL_EFFECTS]; for (uint8 i=0;i<MAX_SPELL_EFFECTS;++i) { if (AuraEffect * partAura = itr->second->GetPartAura(i)) @@ -15847,7 +15847,7 @@ void Player::_SaveAuras() CharacterDatabase.PExecute("INSERT INTO character_aura (guid,caster_guid,spell,effect_mask,stackcount,amount0, amount1, amount2,maxduration,remaintime,remaincharges) " "VALUES ('%u', '" I64FMTD "', '%u', '%u', '%d', '%d', '%d', '%d', '%d', '%d', '%d')", GetGUIDLow(), itr->second->GetCasterGUID(),(uint32)itr->second->GetId(), (uint32)itr->second->GetEffectMask(), - (uint32)itr->second->GetStackAmount(), amounts[0], amounts[1], amounts[2] + (uint32)itr->second->GetStackAmount(), (int32)amounts[0], (int32)amounts[1], (int32)amounts[2] ,int(itr->second->GetAuraMaxDuration()),int(itr->second->GetAuraDuration()),int(itr->second->GetAuraCharges())); } } |
