Getting a pet to cast a heal spell
I wanted to implement a cleric class temporary pet, so for testing purposes, I have changed the class on the mage air pet to a cleric and set the spell set to 1 (default cleric). As such, the pet will attack, cast yaulp, dds, and other buffs, but will never cast a heal (on itself, its owner, etc).
I tried disabling melee via 39^1 attribute and even made a new spell list of just the heal spells and set the list to use to it, but still no dice. I've even tried to make the pet a self only beneficial spell with the restricted spell list but all it does is target its owner - no spells. Any thoughts? |
hmm I also wanted to make heal pet way back.
Do your regular NPC cast heals? |
Quote:
Any clues? |
Quote:
I may need to check my own npcs ;) |
Quote:
After a lot of debugging, I was able to get heals to work but no telling what all I broke in the process. Here's the changes I made. In AICastSpell, under the switch for the AISpells[i].type, I commented out the line that prevents buffing PC pets: Code:
switch (AIspells[i].type) { Code:
/** Code:
if (mob->IsClient()) { Code:
if (mob->GetReverseFactionCon(caster) >= FACTION_KINDLY) { After all those changes, I can now summon my cleric pet and it will heal me or even another pet, which is what I was after. Hopefully that helps you or any others out as well. |
Very interesting, I am curious what devs think on this, why healing is disabled.
|
All times are GMT -4. The time now is 12:22 PM. |
Powered by vBulletin®, Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.