[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:
Dramacydal 2013-06-17 09:45:42 +01:00 committed by Antz
parent 4e824f5672
commit 622cd2edd2
3 changed files with 4 additions and 3 deletions

View file

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

View file

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

View file

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