Skip to content

Commit

Permalink
[10725] Add a few comments for SUMMON_PROP_TYPE_CRITTER
Browse files Browse the repository at this point in the history
Signed-off-by: NoFantasy <nofantasy@nf.no>
  • Loading branch information
NoFantasy committed Nov 15, 2010
1 parent 833d642 commit 49d5a51
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/game/DBCStructure.h
Original file line number Diff line number Diff line change
Expand Up @@ -1632,7 +1632,7 @@ struct SummonPropertiesEntry
uint32 Group; // 1, enum SummonPropGroup
uint32 FactionId; // 2, 14 rows > 0
uint32 Type; // 3, enum SummonPropType
uint32 Slot; // 4, if type = SUMMON_PROP_TYPE_TOTEM, its actual slot 0-6
uint32 Slot; // 4, if type = SUMMON_PROP_TYPE_TOTEM, its actual slot (0-6). Slot may have other uses, selection of pet type in some cases?
uint32 Flags; // 5, enum SummonPropFlags
};

Expand Down
3 changes: 3 additions & 0 deletions src/game/SpellEffects.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4094,6 +4094,9 @@ void Spell::EffectSummonType(SpellEffectIndex eff_idx)
break;
case SUMMON_PROP_TYPE_CRITTER:
DoSummonCritter(eff_idx, summon_prop->FactionId);
// TODO: differenciate between regular 'critter' types and 'critter' that are fighting.
// prop_id == 387 are expected to be fighting (but they have postfix 'companion').
// Note: summon_prop->Slot==6 may be related to how selection are done for this type (need more research)
break;
case SUMMON_PROP_TYPE_PHASING:
case SUMMON_PROP_TYPE_LIGHTWELL:
Expand Down
2 changes: 1 addition & 1 deletion src/shared/revision_nr.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "10724"
#define REVISION_NR "10725"
#endif // __REVISION_NR_H__

0 comments on commit 49d5a51

Please sign in to comment.