Class AttributeValueProvider
java.lang.Object
net.demilich.metastone.game.spells.desc.valueprovider.ValueProvider
net.demilich.metastone.game.spells.desc.valueprovider.AttributeValueProvider
- All Implemented Interfaces:
Serializable,HasDesc<ValueProviderDesc>
Reduces the sum of all values of attribute
ValueProviderArg.ATTRIBUTE on target entities for ValueProviderArg.TARGET. Correctly accounts for Attribute.ATTACK and Attribute.HP when retrieved
from a Card or an Actor to include buffs and bonuses.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ValueProviderDescstatic ValueProviderDesccreate(Attribute attribute, EntityReference target) protected intprovideValue(GameContext context, Player player, Entity target, Entity host) static intprovideValueForAttribute(GameContext context, Attribute attribute, Entity entity) Methods inherited from class net.demilich.metastone.game.spells.desc.valueprovider.ValueProvider
getDesc, getValue, setDesc
-
Constructor Details
-
AttributeValueProvider
-
-
Method Details
-
create
-
create
-
provideValue
- Specified by:
provideValuein classValueProvider
-
provideValueForAttribute
-