Core/Items: fix typo from previous commit (thx vincentmichael)
This commit is contained in:
@@ -12290,7 +12290,7 @@ Item* Player::_StoreItem(uint16 pos, Item* pItem, uint32 count, bool clone, bool
|
|||||||
for (uint8 i = 0; i < MAX_ITEM_PROTO_SPELLS; ++i)
|
for (uint8 i = 0; i < MAX_ITEM_PROTO_SPELLS; ++i)
|
||||||
if (proto->Spells[i].SpellTrigger == ITEM_SPELLTRIGGER_ON_NO_DELAY_USE && proto->Spells[i].SpellId > 0) // On obtain trigger
|
if (proto->Spells[i].SpellTrigger == ITEM_SPELLTRIGGER_ON_NO_DELAY_USE && proto->Spells[i].SpellId > 0) // On obtain trigger
|
||||||
if (bag == INVENTORY_SLOT_BAG_0 || (bag >= INVENTORY_SLOT_BAG_START && bag < INVENTORY_SLOT_BAG_END))
|
if (bag == INVENTORY_SLOT_BAG_0 || (bag >= INVENTORY_SLOT_BAG_START && bag < INVENTORY_SLOT_BAG_END))
|
||||||
if (HasAura(proto->Spells[i].SpellId))
|
if (!HasAura(proto->Spells[i].SpellId))
|
||||||
CastSpell(this, proto->Spells[i].SpellId, true, pItem);
|
CastSpell(this, proto->Spells[i].SpellId, true, pItem);
|
||||||
|
|
||||||
return pItem;
|
return pItem;
|
||||||
@@ -12333,7 +12333,7 @@ Item* Player::_StoreItem(uint16 pos, Item* pItem, uint32 count, bool clone, bool
|
|||||||
for (uint8 i = 0; i < MAX_ITEM_PROTO_SPELLS; ++i)
|
for (uint8 i = 0; i < MAX_ITEM_PROTO_SPELLS; ++i)
|
||||||
if (proto->Spells[i].SpellTrigger == ITEM_SPELLTRIGGER_ON_NO_DELAY_USE && proto->Spells[i].SpellId > 0) // On obtain trigger
|
if (proto->Spells[i].SpellTrigger == ITEM_SPELLTRIGGER_ON_NO_DELAY_USE && proto->Spells[i].SpellId > 0) // On obtain trigger
|
||||||
if (bag == INVENTORY_SLOT_BAG_0 || (bag >= INVENTORY_SLOT_BAG_START && bag < INVENTORY_SLOT_BAG_END))
|
if (bag == INVENTORY_SLOT_BAG_0 || (bag >= INVENTORY_SLOT_BAG_START && bag < INVENTORY_SLOT_BAG_END))
|
||||||
if (HasAura(proto->Spells[i].SpellId))
|
if (!HasAura(proto->Spells[i].SpellId))
|
||||||
CastSpell(this, proto->Spells[i].SpellId, true, pItem2);
|
CastSpell(this, proto->Spells[i].SpellId, true, pItem2);
|
||||||
|
|
||||||
return pItem2;
|
return pItem2;
|
||||||
@@ -16385,7 +16385,7 @@ void Player::ReputationChanged2(FactionEntry const* factionEntry)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Player::HasQuestForItem(uint32 itemid) const
|
bool Player::HasQuestForItem(uint32 itemid) const
|
||||||
{
|
{
|
||||||
for (uint8 i = 0; i < MAX_QUEST_LOG_SIZE; ++i)
|
for (uint8 i = 0; i < MAX_QUEST_LOG_SIZE; ++i)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -8039,7 +8039,7 @@ bool Unit::HandleAuraProc(Unit* victim, uint32 damage, Aura* triggeredByAura, Sp
|
|||||||
*handled = true;
|
*handled = true;
|
||||||
if (victim && victim->HasAura(53601))
|
if (victim && victim->HasAura(53601))
|
||||||
{
|
{
|
||||||
int32 bp0 = CalculatePctN(int32(damage / 12), dummySpell->Effects[EFFECT_2]. CalcValue());
|
int32 bp0 = CalculatePctN(int32(damage / 12), dummySpell->Effects[EFFECT_2].CalcValue());
|
||||||
// Item - Paladin T9 Holy 4P Bonus
|
// Item - Paladin T9 Holy 4P Bonus
|
||||||
if (AuraEffect const* aurEff = GetAuraEffect(67191, 0))
|
if (AuraEffect const* aurEff = GetAuraEffect(67191, 0))
|
||||||
AddPctN(bp0, aurEff->GetAmount());
|
AddPctN(bp0, aurEff->GetAmount());
|
||||||
|
|||||||
Reference in New Issue
Block a user