Prohibit applying transformation skill effects on summons.

Contributed by nasseka.
This commit is contained in:
MobiusDevelopment
2021-12-18 00:24:45 +00:00
parent 45412cf64b
commit 064b49a243
42 changed files with 42 additions and 42 deletions

View File

@@ -108,7 +108,7 @@ public class Summon extends AbstractEffect
for (BuffInfo effect : player.getEffectList().getEffects())
{
final Skill sk = effect.getSkill();
if (!sk.isBad())
if (!sk.isBad() && !sk.isTransformation())
{
sk.applyEffects(player, summon, false, effect.getTime());
}

View File

@@ -971,7 +971,7 @@ public class Skill implements IIdentifiable
*/
public boolean isTransformation()
{
return _abnormalType == AbnormalType.TRANSFORM;
return (_abnormalType == AbnormalType.TRANSFORM) || (_abnormalType == AbnormalType.CHANGEBODY);
}
public int getEffectPoint()