aboutsummaryrefslogtreecommitdiff
path: root/src/game/Player.cpp
diff options
context:
space:
mode:
authormegamage <none@none>2008-11-28 13:04:58 -0600
committermegamage <none@none>2008-11-28 13:04:58 -0600
commitfb2c984b03ebe0b0595071a689d79f5d7b4dab9e (patch)
treeb9be3bf78c4927daad8343ce4b4550a8fec9cbd8 /src/game/Player.cpp
parentbeddd274303c9e342fdbe30a4eeb7e9e29695598 (diff)
*Update _saveaura for pet and player. Need more work on this.
--HG-- branch : trunk
Diffstat (limited to 'src/game/Player.cpp')
-rw-r--r--src/game/Player.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/game/Player.cpp b/src/game/Player.cpp
index b9ccab4b90c..976f13d346f 100644
--- a/src/game/Player.cpp
+++ b/src/game/Player.cpp
@@ -15395,7 +15395,7 @@ void Player::_SaveAuras()
{
CharacterDatabase.PExecute("INSERT INTO character_aura (guid,caster_guid,spell,effect_index,stackcount,amount,maxduration,remaintime,remaincharges) "
"VALUES ('%u', '" I64FMTD "' ,'%u', '%u', '%u', '%d', '%d', '%d', '%d')",
- GetGUIDLow(), itr2->second->GetCasterGUID(), (uint32)itr2->second->GetId(), (uint32)itr2->second->GetEffIndex(), stackCounter, itr2->second->GetModifier()->m_amount,int(itr2->second->GetAuraMaxDuration()),int(itr2->second->GetAuraDuration()),int(itr2->second->m_procCharges));
+ GetGUIDLow(), itr2->second->GetCasterGUID(), (uint32)itr2->second->GetId(), (uint32)itr2->second->GetEffIndex(), (uint32)itr2->second->GetStackAmount(), itr2->second->GetModifier()->m_amount,int(itr2->second->GetAuraMaxDuration()),int(itr2->second->GetAuraDuration()),int(itr2->second->m_procCharges));
}
}
}
@@ -15404,6 +15404,7 @@ void Player::_SaveAuras()
break;
}
+ //TODO: if need delete this
if (lastEffectPair == itr->first)
stackCounter++;
else