mirror of
https://github.com/mangosfour/server.git
synced 2025-12-12 10:37:03 +00:00
[c12639] Fix Inscription bags and default returns of SpellEntry::GetAreaGroupId and SpellEntry::GetFacingCasterFlags which had very bad impacts on gaming process
This commit is contained in:
parent
4e824f5672
commit
622cd2edd2
3 changed files with 4 additions and 3 deletions
|
|
@ -271,13 +271,13 @@ uint32 SpellEntry::GetEffectImplicitTargetAByIndex(SpellEffectIndex index) const
|
||||||
int32 SpellEntry::GetAreaGroupId() const
|
int32 SpellEntry::GetAreaGroupId() const
|
||||||
{
|
{
|
||||||
SpellCastingRequirementsEntry const* castReq = GetSpellCastingRequirements();
|
SpellCastingRequirementsEntry const* castReq = GetSpellCastingRequirements();
|
||||||
return castReq ? castReq->AreaGroupId : -1;
|
return castReq ? castReq->AreaGroupId : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 SpellEntry::GetFacingCasterFlags() const
|
uint32 SpellEntry::GetFacingCasterFlags() const
|
||||||
{
|
{
|
||||||
SpellCastingRequirementsEntry const* castReq = GetSpellCastingRequirements();
|
SpellCastingRequirementsEntry const* castReq = GetSpellCastingRequirements();
|
||||||
return castReq ? castReq->FacingCasterFlags : -1;
|
return castReq ? castReq->FacingCasterFlags : 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
uint32 SpellEntry::GetBaseLevel() const
|
uint32 SpellEntry::GetBaseLevel() const
|
||||||
|
|
|
||||||
|
|
@ -208,6 +208,7 @@ bool ItemCanGoIntoBag(ItemPrototype const* pProto, ItemPrototype const* pBagProt
|
||||||
case ITEM_SUBCLASS_INSCRIPTION_CONTAINER:
|
case ITEM_SUBCLASS_INSCRIPTION_CONTAINER:
|
||||||
if (!(pProto->BagFamily & BAG_FAMILY_MASK_INSCRIPTION_SUPP))
|
if (!(pProto->BagFamily & BAG_FAMILY_MASK_INSCRIPTION_SUPP))
|
||||||
return false;
|
return false;
|
||||||
|
return true;
|
||||||
case ITEM_SUBCLASS_FISHING_CONTAINER:
|
case ITEM_SUBCLASS_FISHING_CONTAINER:
|
||||||
if (!(pProto->BagFamily & BAG_FAMILY_MASK_FISHING_SUPP))
|
if (!(pProto->BagFamily & BAG_FAMILY_MASK_FISHING_SUPP))
|
||||||
return false;
|
return false;
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "12638"
|
#define REVISION_NR "12639"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue