Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[10738] In fact set pet name to empety state redundent.
Client work propertly also if used default name from creature template (set in create code). Signed-off-by: VladimirMangos <vladimir@getmangos.com>
- Loading branch information
Showing
2 changed files
with
5 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 "10737" | ||
#define REVISION_NR "10738" | ||
#endif // __REVISION_NR_H__ |
a3b1a7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can not be torturing this almost dead pets code? it requires a complete rewrite and not pile patches on the patches.
a3b1a7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Indeed rsa. Since we have many pets/guardians in wotlk, like shaman, DK, druid, etc the old code not support them properly with stats etc.
a3b1a7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is not a suitable place to discuss this problem. especially since I made it for myself long ago decided.
a3b1a7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How stats related to defender mode pet type support. I think you not understand that development is sollution specific problems step by step with take in look ofc generic picture. And ofc, attempt fix all what see wrong in one step not related to normal development, just show low level understanding of normal clean for team and developers community product development style.
a3b1a7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Step by step development of optimal, when the code was originally developed in the right direction. If this piece of code is fundamentally incorrect and based on the Hacks, the attempt to modify the step will only worsen the situation.
As in this instance - obviously necessary to add PROTECTOR_PET led adding another obviously hacks function GetProtectorPet ()
a3b1a7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
in fact it can be stored in Player field as minipet. But in other cases this is guardian like pet so i not add field, but think about like way.
Not exist "code was originally developed in the right direction". All code is result some discussion and way selection with good and bad sides for each way base at time discussion known data and expected future uses. That in 99% cases at some moment will outdated and conflict with new before unknown directions of product developement.
And rewrites also can be done step by step. It's known way: make problem parts hide in more clear API abstraction, move code for use this API, update hidden parts, remove redundant code, and repeat until see appropriate level quality.
a3b1a7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Clarify: in new field similar minipet field.
a3b1a7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You do not forget that the field UNIT_FIELD_CRITTER (not player field) is not used by mangos, but instead put hack m_miniPetGuid?
a3b1a7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You right i not remember about UNIT_FIELD_CRITTER (in fact first time read about), BUT I not "put hack". I update existed field to ObjectGuid.
Start use UNIT_FIELD_CRITTER field if it related to minipet can be good step but independent from this or later commits. Remember, step by step ;) Tested patch for use this field will welcome.
a3b1a7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i use this field over 3 month, now by ObjectGuid way. but not in player structure, in unit (creatures also may have critters). need publish clean pacth?
a3b1a7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hmm, then with related spelleffect changes, Also maybe spell example for minipet for creature owner will be nice.
Yes, will be nice have clean patch or commit reference if it include all changes.
a3b1a7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
effects this type I have not found. in only one sent to me sniff creature was filled field UNIT_FIELD_CRITTER - seller of parrots in Booty Bay. may be from not-DBC spells?
a3b1a7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for revision 10744:
https://gist.github.com/706597
only changes for use this field.
a3b1a7c
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you. Added in [10754]. I also allow cast summon spells by any units.
Test by .cast self, and it work fine for creatures.